https://github.com/dalee/php-config
A set of php configurations for different cool tools
https://github.com/dalee/php-config
Last synced: 6 days ago
JSON representation
A set of php configurations for different cool tools
- Host: GitHub
- URL: https://github.com/dalee/php-config
- Owner: Dalee
- License: mit
- Created: 2017-10-09T23:15:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T15:42:24.000Z (over 8 years ago)
- Last Synced: 2025-07-26T00:44:15.421Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-config
A set of php configurations for different cool utils such as `php-cs-fixer`.
```
$ composer require --dev dalee/php-config
```
## Usage
### php-cs-fixer
To make it work you have to create `.php_cs.dist` with `Dalee\CodeStyle\Config`:
```php
return Dalee\CodeStyle\Config::create()
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
);
```
### phpcs
To extend the ruleset create your own `ruleset.xml`:
```xml
Coding standard based on dalee/php-config with some additions.
./src
```
## Requirements
* `PHP 5.6` for `php-cs-fixer`
## Links
* [php-cs-fixer](http://cs.sensiolabs.org/)
* [phpcs](https://github.com/squizlabs/PHP_CodeSniffer)