Skip to content

pborreli/phpcs-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PHP_CodeSniffer standard for the Symfony framework

The phpcs-symfony project builds a PHP_CodeSniffer standard for the symfony framework and projects built using the symony framework.

Pre-requisites

Obviously, PHP_CodeSniffer has to be installed.

sudo pear install PHP_CodeSniffer-1.3.0RC1

Installation

If you want to install the standard you have to symlink this project root folder into the Standard folder where PHP_CodeSniffer is installed. Usually this is /usr/share/php/PHP/CodeSniffer/Standard if PHP_Codesniffer is installed via PEAR.

sudo ln -s /folder/to/git/folder/phpcs-symfony/ /usr/share/php/PHP/CodeSniffer/Standards/Symfony

Usage

After installing the standard you are able to use it with the phpcs standard, you can now go in Symfony root folder and execute :

phpcs --standard=Symfony src/

About

A PHP_CodeSniffer standard for the Symfony framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages