Coding standard to Norsys PHP projects
Installation
composer require norsys/php-coding-standard:~1.0 --dev
Quick usage
Launch phpcs with Norsys PHP ruleset, (*1)
bin/phpcs --standard=vendor/norsys/php-coding-standard/php
Check style specific to write tests
bin/phpcs --standard=vendor/norsys/php-coding-standard/php/test
Use with Symfony
bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony
bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony/test
Advanced usage
Create your ruleset my-ruleset.xml, (*2)
<ruleset name="MyCustomCheckStyleStandard">
<description>My custom check style standard based on Norsys</description>
<rule ref="vendor/norsys/php-coding-standard/php"/>
...
</ruleset>
Launch phpcs with your ruleset, (*3)
bin/phpcs --standard=my-ruleset.xml
Credits
Developped by Norsys, (*4)
License
This project is licensed under the MIT license., (*5)
, (*6)