composer require norsys/php-coding-standard:~1.0 --dev
Launch phpcs
with Norsys PHP
ruleset
bin/phpcs --standard=vendor/norsys/php-coding-standard/php
bin/phpcs --standard=vendor/norsys/php-coding-standard/php/test
bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony
bin/phpcs --standard=vendor/norsys/php-coding-standard/symfony/test
Create your ruleset my-ruleset.xml
<!-- my-ruleset.xml -->
<?xml version="1.0"?>
<ruleset name="MyCustomCheckStyleStandard">
<description>My custom check style standard based on Norsys</description>
<!-- Add Norsys rules -->
<rule ref="vendor/norsys/php-coding-standard/php"/>
<!-- Your custom rules -->
...
</ruleset>
Launch phpcs
with your ruleset
bin/phpcs --standard=my-ruleset.xml
Developped by Norsys
This project is licensed under the MIT license.