Skip to content
This repository has been archived by the owner on Mar 3, 2019. It is now read-only.

📦 Symfony Coding Standard 2.x compatible with PHP CodeSniffer 3 — https://github.com/djoos/Symfony-coding-standard/issues/80#issuecomment-308197975

Notifications You must be signed in to change notification settings

EIGHTFINITE/symfony-coding-standard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:~2.0
    
  3. Add the coding standard to the PHP_CodeSniffer install path

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

     vendor/bin/phpcs -i
    
  5. Done!

     vendor/bin/phpcs /path/to/code
    

Stand-alone

  1. Install PHP_CodeSniffer

  2. Checkout this repository

     git clone git://github.com/djoos/Symfony2-coding-standard.git
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     phpcs --config-set installed_paths /path/to/Symfony2-coding-standard
    

    Or copy/symlink this repository's "Symfony2"-folder inside the phpcs Standards directory

  4. Check the installed coding standards for "Symfony2"

     phpcs -i
    
  5. Done!

     phpcs /path/to/code
    

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%