Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/traderinteractive/coding-standard-php
Updated coding standard for PHP to replace dws-coding-standard
https://github.com/traderinteractive/coding-standard-php
Last synced: 1 day ago
JSON representation
Updated coding standard for PHP to replace dws-coding-standard
- Host: GitHub
- URL: https://github.com/traderinteractive/coding-standard-php
- Owner: traderinteractive
- License: mit
- Created: 2019-05-15T19:28:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T14:13:39.000Z (11 months ago)
- Last Synced: 2024-10-29T01:09:24.740Z (10 days ago)
- Language: PHP
- Size: 188 KB
- Stars: 0
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# DWS Coding Standard
[![Latest Stable Version](https://poser.pugx.org/traderinteractive/coding-standard/v/stable)](https://packagist.org/packages/traderinteractive/coding-standard)
[![Latest Unstable Version](https://poser.pugx.org/traderinteractive/coding-standard/v/unstable)](https://packagist.org/packages/traderinteractive/coding-standard)
[![License](https://poser.pugx.org/traderinteractive/coding-standard/license)](https://packagist.org/packages/traderinteractive/coding-standard)[![Total Downloads](https://poser.pugx.org/traderinteractive/coding-standard/downloads)](https://packagist.org/packages/traderinteractive/coding-standard)
[![Daily Downloads](https://poser.pugx.org/traderinteractive/coding-standard/d/daily)](https://packagist.org/packages/traderinteractive/coding-standard)
[![Monthly Downloads](https://poser.pugx.org/traderinteractive/coding-standard/d/monthly)](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/coding-standard-php/pulls)
* [Issues](https://github.com/traderinteractive/coding-standard-php/issues)## Tests
Tests for the sniffs are included, and are run using the included build:
```bash
./vendor/bin/phpunit
```