ninjify / coding-standard
Tuned & very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others.
Fund package maintenance!
f3l1x
contributte.org/partners.html
Installs: 184 022
Dependents: 21
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 4
Open Issues: 0
Language:Shell
Requires
- php: >=7.2
- slevomat/coding-standard: ^6.4.1
- squizlabs/php_codesniffer: ^3.5.8
README
Tuned & very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others projects.
This library use sniffs from slevomat/coding-standard and ruleset definitions are based on consistence/coding-standard and doctrine/coding-standard. Thank yu guys.
Install
composer require --dev ninjify/coding-standard
Usage
File | Usage |
---|---|
ruleset | global |
contributte | Contributte, Apitte, Nettrine |
Create ruleset.xml
in root of your project.
<?xml version="1.0"?>
<ruleset name="Acme">
<!-- Ninjify Coding Standard -->
<rule ref="./vendor/ninjify/coding-standard/ruleset.xml"/>
<!-- OR -->
<!-- Contributte Coding Standard -->
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>
<!--Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>
Integration
Take a look at phpstorm
folder, there should be prepared codestyle.