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

https://github.com/signet-connectivity/code-style

Signet's code style for PHP
https://github.com/signet-connectivity/code-style

codestyle ecs signet

Last synced: 29 days ago
JSON representation

Signet's code style for PHP

Awesome Lists containing this project

README

          

# signet/ecs

An ECS Signet codestyle package.

## Installation

You can install the package via composer:

```bash
composer require signet/code-style
```

## Usage

Add a `ecs.php` file to the root of your project (if it doesn't exist) with the below contents

`ecs.php`:
```php
import(__DIR__ . '/vendor/signet/code-style/signet-ecs.php');

$services = $containerConfigurator->services();

// $services->set(...);

$parameters = $containerConfigurator->parameters();

$parameters->set(Option::PATHS, [
__DIR__ . '/src',
__DIR__ . '/config',
__DIR__ . '/tests',
__DIR__ . '/ecs.php',
]);
};
```

**NOTE**:
`signet-ecs` applies the same fixers as the preconfigured ecs `PSR-12` set (see
[SetList::PSR_12](https://github.com/symplify/easy-coding-standard/blob/master/src/ValueObject/Set/SetList.php#L19)).

## Links

[Configuration example](https://github.com/symplify/easy-coding-standard#configuration)