freshp/example-contact-form-application

There is no license information available for the latest version (1.0.0) of this package.

package to provide an example contact form

1.0.0 2020-01-16 16:28 UTC

This package is auto-updated.

Last update: 2024-11-17 03:33:50 UTC


README

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