Skip to content

ulabox/Symfony2-coding-standard

 
 

Repository files navigation

Build Status

Symfony2 PHP CodeSniffer Coding Standard

A coding standard to check against the Symfony coding standards, originally shamelessly copied from the -disappeared- opensky/Symfony2-coding-standard repository.

Installation

Composer

This standard can be installed with the Composer dependency manager.

  1. Install Composer

  2. Install the coding standard as a dependency of your project

     composer require --dev escapestudios/symfony2-coding-standard:dev-master
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard
    
  4. Check the installed coding standards for "Symfony2" and "Ulabox"

     bin/phpcs -i
    
  5. Set the default coding standars to "Ulabox"

     bin/phpcs --config-set default_standard Ulabox
    
  6. Done!

     vendor/bin/phpcs /path/to/code
    

About

Symfony2-coding-standard

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%