Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Cs Custom Fixer Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

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.

When to Consider This Package

Adopt this when:

  • Your team uses PHP-CS-Fixer and has explicit style rules for Behat step definitions (e.g., ordering by @Given/@When/@Then) or getter/setter placement
  • You need lightweight, pre-built solutions for niche conventions not covered by official PHP-CS-Fixer rules
  • Your team values consistency in BDD contexts and class structure but lacks bandwidth to maintain custom fixers
  • You have small-to-medium sized PHP projects where minimal configuration overhead is critical

Look elsewhere if:

  • Your project doesn’t use Behat or has no specific ordering requirements for class methods
  • You need more than 2 custom fixers (this package only offers 2)
  • Your team requires enterprise support or high-volume community adoption (current stars: 81, dependents: 0)
  • You’re using a non-Composer workflow or have strict security policies against third-party fixers

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4