TomPradat / coding-standard-php

The coding standard of the brand new Youdot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youdot Coding Standard

Latest Stable Version

The Youdot Coding Standard are set of PHP_CodeSniffer rules applied to all Youdot projects. Youdot Coding Standard is heavily based on Doctrine Coding Standard.

Usage

Install the sniffer

composer req youdot/coding-standard --dev

Copy the configuration

cp vendor/youdot/coding-standard/phpcs.xml.dist phpcs.xml.dist

Then modify the phpcs.xml.dist to adapt your rules and configuration on your need.

Sniff the code

vendor/bin/phpcs

Fix automatically some errors

vendor/bin/phpcbf

About

The coding standard of the brand new Youdot