Name: zend-coding-standard
Owner: Zend Framework
Description: Zend Framework Coding Standard
Created: 2016-11-09 14:52:01.0
Updated: 2017-12-05 10:52:07.0
Pushed: 2018-04-04 13:34:25.0
Homepage: null
Size: 710
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Repository with all coding standard ruleset for Zend Framework repositories.
Install the module via composer by running:
mposer require --dev zendframework/zend-coding-standard
Add composer scripts into your composer.json
:
ipts": {
-check": "phpcs",
-fix": "phpcbf"
Create file phpcs.xml
on base path of your repository with content:
l version="1.0"?>
eset name="Zend Framework Coding Standard">
rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>
!-- Paths to check -->
file>config</file>
file>src</file>
file>test</file>
leset>
You can add or exclude some locations in that file. For a reference please see: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
To run checks only:
mposer cs-check
To automatically fix many CS issues:
mposer cs-fix