Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/umbrellio/code-style-php
- Owner: umbrellio
- Created: 2019-05-24T12:11:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T17:07:19.000Z (8 months ago)
- Last Synced: 2024-09-20T00:49:38.989Z (4 months ago)
- Topics: code-style, easy-coding-standard, php
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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---