pedrotroller/php-cs-custom-fixer
Custom fixers for PHP-CS-Fixer. Adds rules like ordering Behat context step definition methods by annotation and method name, with options for detecting context classes. Install via Composer and register the fixers in your .php_cs(.dist) config.
This package directly supports decisions around code quality standardization and developer productivity. As a PM, it enables consistent enforcement of project-specific conventions (like Behat step ordering and getter/setter placement) that standard PHP-CS-Fixer lacks. It eliminates manual code review debates on these patterns, reduces cognitive load during onboarding, and ensures alignment with architectural preferences without custom tooling. For teams using Behat, it specifically addresses BDD context maintainability – a key factor in test reliability and feature delivery velocity. The "buy vs build" decision is clear: adopting this package avoids 2-3 weeks of engineering effort to build/maintain custom fixers, while providing immediate value for projects with these specific style requirements.
Adopt this when:
@Given/@When/@Then) or getter/setter placementLook elsewhere if:
This package is a 5-minute integration that automates two critical code quality rules our team has been debating manually: Behat step ordering for test readability and getter/setter placement for class consistency. For engineering, it eliminates 10+ hours/month of code review friction and onboarding time. For executives, it directly reduces technical debt in our BDD tests – a key risk area for feature delivery – while freeing up developer capacity for high-value work. It’s a proven, low-risk solution with CI/CD checks and clear documentation, requiring zero maintenance overhead. We’re not building this ourselves; we’re leveraging a vetted open-source tool to accelerate quality and consistency at near-zero cost.
How can I help you explore Laravel packages today?