lcapps/php-code-style

PHP Code Style for LCApps

Maintainers

Package info

github.com/lcapps-es/php-code-style

pkg:composer/lcapps/php-code-style

Statistics

Installs: 3 285

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.3.0 2026-03-05 09:25 UTC

This package is auto-updated.

Last update: 2026-04-05 10:43:13 UTC


README

How to use this repository

  1. Install the dependency: composer req --dev lcapps/php-code-style

  2. 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]);
        
    };