After cloning the repository, run composer install to install dependencies.
See https://getcomposer.org/ for Composer installation instructions.
Running the tests:
composer testSee .travis.yml for PHP versions we currently support.
Generate and view coverage report by running:
composer coverage-html
open ./coverage/report/index.htmlTo generate clover report run:
composer coverage-cloverWe follow the PSR-12 Style Guide, which is configured in .phpcs.xml.dist.
Additional checks are configured in .php-cs-fixer.dist.php - See https://cs.symfony.com/ for further information.
Coding style can be verified by running:
composer lintNote: Windows users that have enabled
core.autocrlfin their git configuration can disable theGeneric.Files.LineEndingsrule by copying .phpcs.xml.dist file to.phpcs.xmland adding an exclusion. This sniff will always be included on Travis CI.