ninjify/coding-standard
PHP_CodeSniffer coding standard for PHP projects. Install via Composer and include the provided ruleset.xml or Contributte profile. Supports excluding paths and ships PhpStorm code style presets. Maintained by Contributte.
To install latest version of ninjify/coding-standard use Composer.
composer require --dev ninjify/coding-standard
| State | Version | Branch | PHP |
|---|---|---|---|
| dev | ^0.13 |
master |
>=7.2 |
| stable | ^0.12 |
master |
>=7.2 |
| 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>
Take a look at phpstorm folder, there should be prepared codestyle.
See how to contribute to this package. This package is currently maintained by these authors.
Consider to support contributte development team. Also thank you for using this package.
How can I help you explore Laravel packages today?