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

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

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)