/codesniffer-standard

PHP_Codesniffer standard

Primary LanguageXMLMIT LicenseMIT

Crowdcube Codesniffer Standard

Circle CI

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.

Installation

Add the following to your composer.json require and update:

"crowdcube/codesniffer-standard": "0.3.*"

Checking

When running ./vendor/bin/phpcs from your project, set the standard as follows:

--standard=vendor/crowdcube/codesniffer/Crowdcube