This is a scaffolding for PHP projects. A basic structure ready to start coding in src
and tests
.
composer test-all # run test-quality & test-phpunit
composer test-quality # run csrun & psalm & phpstan
composer test-phpunit # run phpunit
composer csrun # check code style
composer psalm # run psalm coverage
composer phpstan # run phpstan coverage
Install the pre-commit hook running:
./tools/git-hooks/init.sh
If you don't have PHP in your local machine, you can use docker to build an image with PHP 8.0
.
docker build -t php-scaffolding .
Feel free to open any PR with your ideas, suggestions or improvements.
Or contact me directly via Twitter.