Skip to content

Elevent's PHP Coding Standards

License

reelivate/php-coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elevent's PHP Coding Standards

A custom PHP CodeSniffer ruleset

Install

  1. Add the repository to your composer.json:
    "repositories": [
        {
            "type": "github",
            "url": "git@github.com:reelivate/php-coding-standards.git"
        }
    ]
  2. Require with composer:
    composer require --dev reelivate/php-coding-standards

Usage

  1. Reference the ruleset in your phpcs.xml or .phpcs.xml configuration file:
    <?xml version="1.0"?>
    <ruleset>
        <file>./src</file>
        <file>./tests</file>
    
        <rule ref="./vendor/reelivate/php-coding-standards/ruleset.xml"/>
    </ruleset>
  2. Run phpcs

About

Elevent's PHP Coding Standards

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •