Skip to content

circul8/coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Circul8 Coding Standards

Circul8 coding standards and dot files.

Installation

Install Slevomat Coding Standards

composer require slevomat/coding-standard --dev

Edit composer.json

Add two scripts there, lint & lintfix:

{
  "require-dev": {
    "slevomat/coding-standard": "^5.0"
  },
  "scripts": {
    "lint": [
      "vendor/bin/phpcs --standard=ruleset.xml"
    ],
    "lintfix": [
      "vendor/bin/phpcbf --standard=ruleset.xml"
    ]
  }
}

Download ruleset.xml and .editorconfig

wget -nv https://raw.githubusercontent.com/circul8/coding-standards/master/.editorconfig
wget -nv https://raw.githubusercontent.com/circul8/coding-standards/master/phpcs.xml

Edit ruleset.xml if necessary.

About

Circul8 coding standards and dot files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published