Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/umbrellio/code-style-php

Php linter setting used in our projects
https://github.com/umbrellio/code-style-php

code-style easy-coding-standard php

Last synced: about 2 months ago
JSON representation

Php linter setting used in our projects

Awesome Lists containing this project

README

        

# php-config-umbrellio

Settings used in [Umbrellio](https://umbrellio.biz) php projects.

---

### Installation

Install via composer:

```shell
php composer.phar require --dev umbrellio/code-style-php
```

Create config `ecs.yml`:

```yaml
imports:
- { resource: vendor/umbrellio/code-style-php/umbrellio-cs.yml }
```

If major version of [EasyCodingStandard](https://github.com/Symplify/EasyCodingStandard) 9 or higher
create config `ecs.php`:

```php
import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php');
};
```

---

### Usage

Run in CLI:

```
vendor/bin/ecs check src --fix --config=ecs.yml
```

or:

```
vendor/bin/ecs check src --fix --config=ecs.php
```

### Dependencies (and Links)

- [EasyCodingStandard](https://github.com/Symplify/EasyCodingStandard) - used library.
- [code-style](https://github.com/umbrellio/code-style) - linter settings for other languages.

---

## License

Released under MIT License.

## Contributing

- Fork it ( https://github.com/umbrellio/code-style-php )
- Create your feature branch (`git checkout -b feature/my-new-feature`)
- Commit your changes (`git commit -am 'Add some feature'`)
- Push to the branch (`git push origin feature/my-new-feature`)
- Create new Pull Request

---


Supported by Umbrellio