noomaa/codingstandards

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

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

dev-main 2021-07-10 16:32 UTC

This package is auto-updated.

Last update: 2024-04-19 19:38:53 UTC


README

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