Skip to content

youshido-php/CS-CodeStyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Youshido Symfony2 PHP CodeSniffer Coding Standard

This standard copy Symfony2 one with following changes:

  • Concatenation spacing equal 1

Installation

This standard can be installed with the Composer dependency manager.

Install the coding standard as a dependency of your project

    composer require --dev youshido/cs-code-standard

Usage

Run CodeSniffer with following parameters to check your project code style:

    ./vendor/bin/phpcs --encoding=utf-8 --extensions=php --standard=./vendor/youshido/cs-code-standard ./src -p