First of all thank you for contributing!
Make your contributions through Pull Requests
Find here a few rules to follow in order to keep the code clean and easy to review and merge:
- Follow PSR-12 coding standard
- Unit test everything and run the test suite
- Try not to bring code coverage down
- Keep documentation updated
- Just one pull request per feature at a time
- Check that GitHub Actions build passed
Makefile targets are provided to help you keep code quality and run the test suite:
make lint
will run PHP linting and PHP Code Sniffer and PHP-CS-Fixer for coding style guidelines checkmake fix
will run PHP-CS-Fixer trying to fix coding stylesmake qa
will run PHPCPD for copy/paste detection, PHPMD and PHPStan for static analysismake test
will run PHPUnit for unit tests and Infection for mutation tests