Skip to content

freshp/example-contact-form-application

Repository files navigation

Build Status

example contact form application

example implementation for a talk: https://speakerdeck.com/moveelevator/architektur-in-php-applikationen

Execute manual test of the formhandling

  1. start built in php server
php -S localhost:8000 -t example/
  1. with the browser you can test the form

build js and css files with gulp

  1. install npm
    npm install
    
  2. install gulp for cli
    npm install -g gulp-cli
    
  3. run gulp
    gulp
    
    • if gulp is installed from another user, please use npx and run:
      npx gulp
      

Checks

Run each command in the project root directory.

Execute PHPUnit tests

./vendor/bin/phpunit.phar -c ./phpunit.xml --debug --verbose

Execute PHPSTAN checks

./vendor/bin/phpstan.phar analyse -l max -c ./phpstan.neon src/

Execute PHPCS-fixer

./vendor/bin/phpcs-fixer.phar fix ./src

Execute PHPCS checks

./vendor/bin/phpcs.phar ./src --standard=./ruleset.xml --extensions=php

About

package to provide a contact form

Resources

Stars

Watchers

Forks

Packages

No packages published