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
- Host: GitHub
- URL: https://github.com/streamcommon/coding-standard
- Owner: streamcommon
- License: bsd-3-clause
- Created: 2019-02-04T19:19:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T21:43:24.000Z (almost 6 years ago)
- Last Synced: 2025-01-17T20:15:30.013Z (over 1 year ago)
- Topics: coding-standart, streamcommon
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StreamCommon Team Coding Standard
[](https://packagist.org/packages/streamcommon/coding-standard)
[](https://packagist.org/packages/streamcommon/coding-standard)
[](./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