My template for PHP project or exercise (Kata)
git clone https://github.com/klnjmm/template-php.git your-project-name
cd your-project-name
- General informations like project name, description and license
"name": "klnjmm/template",
"description": "My template for PHP project",
"type": "project",
"license": "MIT",
make init
make up
rmdir /s /q .git
git init
composer install
Let's code ! 🚀
Here a few commands that can help you :
- Launch unit tests
make unit-tests
- Launch unit tests with coverage
make unit-tests-coverage
- Launch mutation testing
make mutation
- Launch code sniffer
make code-sniffer
- Fix code style
make code-sniffer-fix
Here a few commands that can help you :
- Launch unit tests
vendor\bin\pest.bat
- Launch unit tests with coverage
vendor\bin\pest.bat --coverage
- Launch mutation testing (doesn't work on windows...)
vendor\bin\infection.bat --test-framework=pest --show-mutations
- Launch code sniffer
vendor\bin\phpcs.bat
- Launch code sniffer
vendor\bin\phpcbf.bat
Do whatever you want with this !