airmedia / coding-standard
Coding standard for Airmedia's projects
Installs: 8 015
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: ^7.4 || ^8.0
- slevomat/coding-standard: ^8.14.0
- squizlabs/php_codesniffer: ^3.7.1
README
Ruleset for PHP_CodeSniffer.
Installation
- Install the package via composer:
$ composer require --dev airmedia/coding-standard
- Add composer scripts into your
composer.json
:
"scripts": {
"cs-check": "phpcs",
"cs-fix": "phpcbf"
}
- Create file
phpcs.xml
:
<?xml version="1.0"?> <ruleset> <arg name="basepath" value="." /> <arg name="extensions" value="php" /> <arg name="parallel" value="80" /> <arg name="cache" value=".phpcs-cache" /> <arg name="colors" /> <file>src</file> <file>tests</file> <rule ref="Airmedia" /> </ruleset>