sylius-labs/coding-standard
Battle-tested Sylius coding standard for PHP. Install via Composer and import the provided ecs.php into your EasyCodingStandard (ECS) config to apply consistent formatting and rules across your project. Includes guidance for migrating from YAML to PHP configs.
--fix flag).Adopt if:
Look elsewhere if:
For Executives: *"This package lets us enforce consistent, high-quality PHP code automatically—like a spellcheck for our dev team. It’s battle-tested by Sylius (a leading ecommerce framework), so we’re not reinventing the wheel. By adopting it, we’ll:
For Engineering: *"This is Sylius’s PHP coding standard for ECS, a drop-in config that handles:
composer require + import).
✅ Fixes issues automatically in CI (e.g., --fix flag).
Tradeoff: Adds a dev dependency, but saves hours weekly in manual reviews. Let’s pilot it on [Project X] and measure the impact."*For Developers:
"Tired of ‘please fix your indentation’ comments? This package automates Sylius’s coding standards so your PRs focus on logic, not formatting. It’s like Prettier for PHP—just run ecs check or --fix in your PR, and boom, consistent code. No more debates over spaces vs. tabs."
How can I help you explore Laravel packages today?