add installation instructions to README.md

This commit is contained in:
lubiana 2022-11-17 15:30:08 +01:00
parent a99023d484
commit c498759069
No known key found for this signature in database

View file

@ -1,3 +1,30 @@
# My very opiniated Configurations for Rector and ECS # My very opiniated Configurations for Rector and ECS
## Installation
```bash
composer require --dev lubiana/code-quality
```
Add my Setlist to ECS in `ecs.php`:
```php
return static function (\Symplify\EasyCodingStandard\Config\ECSConfig $config): void {
$config->sets([
\Lubiana\CodeQuality\LubiSetList::ECS,
]);
};
```
And for rector.php:
```php
return static function (\Rector\Config\RectorConfig $config): void {
$config->sets([
\Lubiana\CodeQuality\LubiSetList::RECTOR,
]);
};
```