A starter template for scaffolding new PHP projects quickly. Includes configuration for the following tooling.
-
PHP CS Fixer
-
PHPUnit
-
PHPStan
-
Deptrac
-
Security Checker
-
Circle CI
-
Git Hooks
To quickly scaffold a new PHP project from this template, simply find and replace REPO_NAME with the name of the new project and link your repository to Circle CI.
You will need to install the project dependencies by running the following command.
docker-compose run app composer installThe tests can be run using the following command.
docker-compose run app composer testThis project uses git hooks to enforce a consistent branch and commit naming convention. To enable these hooks during local development you will need to run the following command.
git config core.hooksPath ./.githooksBranch names should obey the following regex.
^(feature|fix)\/#[0-9]+-[a-zA-Z0-9-]+$Commits will then automatically be prepended with the issue number specified after the # in the branch name.