Coding Standard for PHP projects of Intervention.
Install the package using Composer by running the following command:
composer require intervention/coding-standardAfter Installation add <rule ref="Intervention"/> to your phpcs.xml.
Your configuration might look like this:
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<arg name="extensions" value="php"/>
<file>./src</file>
<rule ref="Intervention"/>
</ruleset>
PHP_CodeSniffer is automatically installed along with this package. So you can easily check the standard with the following command.
./vendor/bin/phpcs