freshp / example-contact-form-application
package to provide an example contact form
Installs: 13
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^7.4
- symfony/config: ^5.0
- symfony/form: ^5.0
- symfony/options-resolver: ^5.0
- symfony/security-csrf: ^5.0
- symfony/translation: ^5.0
- symfony/twig-bridge: ^5.0
- symfony/validator: ^5.0
- twig/twig: ^3.0
Requires (Dev)
- roave/security-advisories: dev-master
- slevomat/coding-standard: ^6.0
- tm/tooly-composer-script: ^1.4
This package is auto-updated.
Last update: 2024-11-17 03:33:50 UTC
README
example contact form application
example implementation for a talk: https://speakerdeck.com/moveelevator/architektur-in-php-applikationen
Execute manual test of the formhandling
- start built in php server
php -S localhost:8000 -t example/
- with the browser you can test the form
build js and css files with gulp
- install npm
npm install
- install gulp for cli
npm install -g gulp-cli
- run gulp
gulp
- if gulp is installed from another user, please use npx and run:
npx gulp
- if gulp is installed from another user, please use npx and run:
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