lcapps / php-code-style
PHP Code Style for LCApps
1.0.7
2024-04-08 09:40 UTC
Requires
- php: ^8.3
- symplify/easy-coding-standard: ^12.1
README
How to use this repository
-
Install the dependency:
composer req --dev lcapps/php-code-style
-
Create ecs.php in your project root directory with the following content:
use LCApps\CodeStyle\CodeStyleSets; use Symplify\EasyCodingStandard\Config\ECSConfig; return function (ECSConfig $ecsConfig): void { // Configure your paths $ecsConfig->paths([ __DIR__ . '/config', __DIR__ . '/public', __DIR__ . '/src', __DIR__ . '/tests', ]); // If you want to use Symfony rules, uncomment the following line //$ecsConfig->dynamicSets(['@Symfony']); $ecsConfig->sets([CodeStyleSets::DEFAULT]); };