traderinteractive / coding-standard
DWS Coding standard
Package info
github.com/traderinteractive/coding-standard-php
pkg:composer/traderinteractive/coding-standard
v3.0.2
2023-12-12 14:12 UTC
Requires
- php: ^7.0 || ^8.0
- squizlabs/php_codesniffer: ^3
Requires (Dev)
- php-coveralls/php-coveralls: ^2.5
- phpunit/phpunit: ^6.5 || ^9
README
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