Download the PHP package ground/coding-standard without Composer
On this page you can find all versions of the php package ground/coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ground/coding-standard
More information about ground/coding-standard
Files in ground/coding-standard
Package coding-standard
Short Description Coding standard
License MIT
Homepage https://github.com/DmitryBezik/groundcodingstandard
Informations about the package coding-standard
coding-standard
The coding standard ruleset
This specification extends and expands PSR-12, the extended coding style guide and requires adherence to PSR-1, the basic coding standard.
Installation
-
Install the module via composer by running:
-
Add composer scripts into your
composer.json
: - Create
phpcs.xml
file on base path of your repository:
You can add or exclude some locations in that file. For a reference please see: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
Usage
-
To run checks only:
- To automatically fix many CS issues:
Ignoring parts of a File
Disable parts of a file:
Disable a specific rule:
Ignore a specific violation:
Reference
Rules can be added, excluded or tweaked locally, depending on your preferences. More information on how to do this can be found here:
All versions of coding-standard with dependencies
dealerdirect/phpcodesniffer-composer-installer Version ^0.6.2 || ^0.7
slevomat/coding-standard Version ^6.2.0
squizlabs/php_codesniffer Version ^3.5.3
webimpress/coding-standard Version ^1.1.5