https://github.com/traderinteractive/dws-coding-standard
DWS Coding Standard
https://github.com/traderinteractive/dws-coding-standard
Last synced: 9 months ago
JSON representation
DWS Coding Standard
- Host: GitHub
- URL: https://github.com/traderinteractive/dws-coding-standard
- Owner: traderinteractive
- License: mit
- Created: 2012-04-27T17:54:26.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T10:06:12.000Z (over 4 years ago)
- Last Synced: 2025-03-24T10:56:31.495Z (over 1 year ago)
- Language: PHP
- Size: 159 KB
- Stars: 8
- Watchers: 12
- Forks: 10
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# DWS Coding Standard
[](https://travis-ci.org/traderinteractive/dws-coding-standard)
[](https://coveralls.io/github/traderinteractive/dws-coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
[](https://packagist.org/packages/traderinteractive/coding-standard)
A fairly complete [PHP_CodeSniffer](http://www.squizlabs.com/php-codesniffer) coding standard. See the [standard document](standard.md) to
see what "sniffs" are enforced.
## Composer
This standard is meant to be used in a project using [Composer](http://getcomposer.org). It can be added to your project's composer.json as follows:
```sh
composer require traderinteractive/coding-standard
```
Then to use it, you can run the following (or add to your build process):
```bash
./vendor/bin/phpcs --standard=$(pwd)/vendor/traderinteractive/coding-standard/DWS YOUR_FILES_AND_DIRECTORIES
```
## Contact
Developers may be contacted at:
* [Pull Requests](https://github.com/traderinteractive/dws-coding-standard/pulls)
* [Issues](https://github.com/traderinteractive/dws-coding-standard/issues)
## Tests
Tests for the sniffs are included, and are run using the included build:
```bash
./vendor/bin/phpunit
```