unleashedtech/php-coding-standard

CodeSniffer ruleset used by Unleashed Technologies

Installs: 389

Dependents: 0

Suggesters: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0

Type:phpcodesniffer-standard

v0.1.1 2019-03-11 21:29 UTC

README

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