Search by

intervention / coding-standard

olivervogel

Coding Standard for Intervention PHP projects

Package info

github.com/Intervention/coding-standard

Homepage

Type:phpcodesniffer-standard

pkg:composer/intervention/coding-standard

Statistics

Installs: 194

Dependents: 8

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.4 2026-09-19 07:43 UTC

This package is auto-updated.

Last update: 2026-09-19 07:43:47 UTC


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