Skip to content

Updated coding standard for PHP to replace dws-coding-standard

License

Notifications You must be signed in to change notification settings

traderinteractive/coding-standard-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWS Coding Standard

Latest Stable Version Latest Unstable Version License

Total Downloads Daily Downloads Monthly Downloads

A fairly complete PHP_CodeSniffer coding standard. See the standard document to see what "sniffs" are enforced.

Composer

This standard is meant to be used in a project using Composer. It can be added to your project's composer.json as follows:

composer require traderinteractive/coding-standard

Then to use it, you can run the following (or add to your build process):

./vendor/bin/phpcs --standard=$(pwd)/vendor/traderinteractive/coding-standard/DWS YOUR_FILES_AND_DIRECTORIES

Contact

Developers may be contacted at:

Tests

Tests for the sniffs are included, and are run using the included build:

./vendor/bin/phpunit