intervention / coding-standard
Coding Standard for Intervention PHP projects
Package info
github.com/Intervention/coding-standard
Type:phpcodesniffer-standard
pkg:composer/intervention/coding-standard
1.0.4
2026-09-19 07:43 UTC
Requires
- php: ^8.1
- slevomat/coding-standard: ~8.0
- squizlabs/php_codesniffer: ^4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Coding Standard for PHP projects of Intervention.
Installation
Install the package using Composer by running the following command:
composer require intervention/coding-standard
Getting Started
After 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