Enforce coding standards and best practices in your Symfony project with Git Hooks.
- Copy-Paste the repo content in your project root
- Merge the content of
.gitignore
with your project.gitignore
- Merge the content of Makefile with your project Makefile
- Enable Git Hooks in your project using
make git_hooks
- PSR-2 coding standards for all php files.
- PHP mess detector.
- PHPdoc standard.
- functional programing Avoid State mutation
- Use SymfonyCLI (if installed) to detect the PHP version used by the project
- Use .php-version file (if exists) to detect the PHP version used by the project (can be used with without SymfonyCLI)
- Use .phpenv file (if exists) to detect the PHP version used by the project (if you use phpenv)
- Fall back to the default PHP version
- Check for forgotten merge conflicts
- Check for forgotten
var_dump()
ordump()
functions - Check for forgotten
console.log()
functions - Check for PHP syntax errors (if phpcs is installed)
- Check for PHP logical errors (if phpmd is installed)
- Run phpunit tests (if phpunit is installed)
- Run phpunit tests (if phpunit is installed)
- Will reset the cache before each test
- Will reset the database before each test
- Will reload the fixtures before each test