vdebes / php-boilerplate
PHP project starting point with commonly used tools preconfigured
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.35
- nunomaduro/phpinsights: ^2.9
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2024-04-24 18:40:43 UTC
README
A starting point for a coding dojo or a small personal project. There is no web framework included, but most of the quality assessment tools I use on a daily basis.
Commands to get started
In a terminal, to create a new project :
composer create-project vdebes/php-boilerplate myApp --remove-vcs
Tests
- Unit testing with PHP-Unit ran at pre-commit, can be run with coverage
generation with
composer run test-coverage
Static analysis
- Static analysis with PHPStan ran at pre-commit
Quality metrics
- Project quality with PHPInsights ran at pre-push
Coding standards
- Codestyle checker and fixer with PHP-CS-Fixer ran at pre-commit, some
errors can be fixed with
composer run csfix