An open API service indexing awesome lists of open source software.

https://github.com/streamcommon/coding-standard

StreamCommon Team Coding Standard
https://github.com/streamcommon/coding-standard

coding-standart streamcommon

Last synced: 3 months ago
JSON representation

StreamCommon Team Coding Standard

Awesome Lists containing this project

README

          

# StreamCommon Team Coding Standard
[![Latest Stable Version](https://poser.pugx.org/streamcommon/coding-standard/v/stable)](https://packagist.org/packages/streamcommon/coding-standard)
[![Total Downloads](https://poser.pugx.org/streamcommon/coding-standard/downloads)](https://packagist.org/packages/streamcommon/coding-standard)
[![License](https://poser.pugx.org/streamcommon/coding-standard/license)](./LICENSE)

## Installation
1. Install the module via composer:
* Console run:
```console
composer require --dev streamcommon/coding-standard
```
* Or add into your `composer.json`:
```json
"require-dev": {
"streamcommon/coding-standard": "*"
}
```
2. Add composer scripts into your `composer.json`:
```json
"scripts": {
"cs-check": "phpcs",
"cs-fix": "phpcbf"
}
```
3. Create file `phpcs.xml`:
```xml



bin
config
lib
src
test

```
## Usage
Run: `composer cs-check` OR `composer cs-fix`

## Customize
See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml