From c498759069311ebaeff2c9c380cac29b83e6ed7b Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 17 Nov 2022 15:30:08 +0100 Subject: [PATCH] add installation instructions to README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 24334c5..14f028e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ # 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, + ]); +}; +``` + +