markocupic / easy-coding-standard
EasyCodingStandard configurations for Contao
Package info
github.com/markocupic/easy-coding-standard
pkg:composer/markocupic/easy-coding-standard
13.0.1
2026-02-12 21:04 UTC
Requires
- php: ^8.1
- contao/easy-coding-standard: ^6.13
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This package includes some custom sniffers for Markocupic projects..
Installation
Add the package to your Contao installation via Composer:
composer require markocupic/easy-coding-standard --dev
Usage
Create a file named ecs.php in the root directory of your project.
<?php declare(strict_types=1); use SetList\SetList; use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() ->withSets([SetList::MARKOCUPIC]) // Adjust the configuration according to your needs. ;
Then run the script like this:
vendor/bin/ecs check
What's inside?
The package contains the following custom fixers:
| Class | Description |
|---|---|
| --empty-- | --empty-- |
The package contains the following custom sniffs:
| Class | Description |
|---|---|
NoDumpSniff |
Prevents using dump() statements. |
NoExitOrDieSniff |
Prevents using exit() or die() statements. |
NoMailSniff |
Prevents using mail() statements. |
License
Markocupic Easy Coding Standard is licensed under the terms of the LGPLv3.