frankverhoeven/coding-standard

FV Coding Standard

Installs: 4 512

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

2.3 2024-07-03 06:09 UTC

This package is auto-updated.

Last update: 2024-11-03 07:21:45 UTC


README

Set of PHP_CodeSniffer rules, heavily based on the Doctrine Coding Standard.

Install

Install the package with composer:

composer require frankverhoeven/coding-standard --dev

Configure

Add the ruleset to your phpcs.xml.dist file:

<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
    <arg name="basepath" value="."/>
    <arg name="cache" value=".phpcs-cache"/>
    <arg name="colors"/>
    <arg name="extensions" value="php"/>
    <arg name="parallel" value="80"/>
    <arg value="sp"/>

    <file>src</file>
    <file>tests</file>

    <rule ref="FrankVerhoeven"/>
</ruleset>