This is our work-in-progress
PHP_Codesniffer
standard for validating the PHP code that we write.
It currently does not check/enforce all, but serves as a good first check to the Crowdcube coding standard. The remaining checks will be picked up in code review.
Add the following to your composer.json
require and update:
"crowdcube/codesniffer-standard": "0.3.*"
When running ./vendor/bin/phpcs
from your project, set the standard as follows:
--standard=vendor/crowdcube/codesniffer/Crowdcube