Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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


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

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# CharonLab Coding Standard

## Installation

1. Install via composer
```bash
composer require --dev charonlab/coding-standard
```
2. Create the `phpcs.xml.dist` file in root path of you repository
```xml













src
test




```
3. Add composer scripts into your `composer.json`
```json lines
{
"scripts": {
"cs": "phpcs",
"cs-fix": "phpcbf -vpw"
}
}
```

## Usage

- To run checks only:

```bash
composer run cs
```

- To automatically fix violations coding standards:

```bash
composer run cs-fix
```

## License

The MIT License (MIT). Please see [License](LICENSE) for more information.