Skip to content

noomaa/CodingStandards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noomaa Coding Standards

PHP_CodeSniffer rules (sniffs) to enforce Noomaa's Coding Standards.

Requirements

The Noomaa Coding Standards require PHP 7.0.0 or higher and PHP_CodeSniffer version 3.5.0 or higher.

Installation

  1. Install PHP_CodeSniffer by following its installation instructions (via Composer, Phar file, PEAR, or Git checkout).

    Do ensure that PHP_CodeSniffer's version matches our requirements.

  2. Install Noomaa standards globally:

     composer global require noomaa/codingstandards
    

    OR DEV version

     composer global require noomaa/codingstandards:dev-main
    
  3. Setting the default standard to be the Noomaa coding standard

     phpcs --config-set default_standard Noomaa
    

How to use

Command line

Run the phpcs command line tool on a given file or directory, for example:

phpcs --standard=Noomaa test-file.php

Using PHPCS and Noomaa Coding Standards from within your IDE

Libraries

Releases

No releases published

Packages

No packages published

Languages