Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intervention Coding Standard

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

About

Coding Standard for PHP projects of intervention.io

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors