Skip to content

mattzamora/php-coding-standard

Repository files navigation

Unleashed Technologies PHP CodeSniffer Coding Standard

Latest Version Build Status Software License

A PHP coding standard for Unleashed Technologies, originally based on djoos/Symfony-coding-standard.

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 unleashedtech/php-coding-standard
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     vendor/bin/phpcs --config-set installed_paths vendor/unleashedtech/php-coding-standard
    
  4. Check the installed coding standards for "Unleashed"

     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/unleashedtech/php-coding-standard.git
    
  3. Add the coding standard to the PHP_CodeSniffer install path

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

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

  4. Check the installed coding standards for "Unleashed"

     phpcs -i
    
  5. Done!

     phpcs /path/to/code
    

About

CodeSniffer ruleset used by Unleashed Technologies

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages