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
- Host: GitHub
- URL: https://github.com/signet-connectivity/code-style
- Owner: signet-connectivity
- License: mit
- Created: 2021-03-24T11:14:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T10:56:55.000Z (over 4 years ago)
- Last Synced: 2025-07-19T22:22:04.223Z (7 months ago)
- Topics: codestyle, ecs, signet
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)