thanpa/thanpa-coding-standard

CodeSniffer ruleset for the Thanpa coding standard

Installs: 415

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:coding-standard

pkg:composer/thanpa/thanpa-coding-standard

v1.0 2016-02-16 11:28 UTC

This package is auto-updated.

Last update: 2025-10-09 04:21:40 UTC


README

A coding standard to check against the Thanpa 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 thanpa/thanpa-coding-standard:~1.0
    
  3. Add the coding standard to the PHP_CodeSniffer install path

     bin/phpcs --config-set installed_paths vendor/thanpa/thanpa-coding-standard
    
  4. Check the installed coding standard for "Thanpa"

     bin/phpcs -i
    
  5. Done!

     bin/phpcs /path/to/code
    

### Stand-alone

  1. Install PHP_CodeSniffer

  2. Checkout this repository

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

     phpcs --config-set installed_paths thanpa/thanpa-coding-standard
    

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

  4. Check the installed coding standard for "Thanpa"

     phpcs -i
    
  5. Done!

     phpcs /path/to/code