Skip to content

WeareJH/php-coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-coding-standards

Custom PHP CS Rules

Installation

Add the following to your composer.json file:

"repositories" : [
    {
        "type": "vcs",
        "url": "[email protected]:WeareJH/php-coding-standards.git"
    }
]

Then run:

composer require wearejh/php-coding-standards:dev-master --dev

Usage

Assuming you have phpcs installed:

./vendor/bin/phpcs -s /folder/to/code --standard=vendor/wearejh/php-coding-standards/Jh