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

Technical Evaluation

Architecture fit: The package extends PHP-CS-Fixer's ecosystem through custom fixers, aligning perfectly with standard code formatting workflows. It integrates as a dev dependency with minimal architectural impact since PHP-CS-Fixer is already a common tool in PHP projects. The fixers operate at the AST level like official fixers, ensuring compatibility with existing linting pipelines.

Integration feasibility: High feasibility. Installation via Composer is trivial (composer require --dev), and configuration requires only 2-3 lines in .php_cs.dist to register fixers and enable rules. The provided examples demonstrate clear configuration patterns for both direct rule setup and rule set factories.

Technical risk: Significant concerns exist. Zero Packagist dependents indicates negligible real-world usage and community validation. The "2025-09-25" release date is likely a data error but suggests potential maintenance issues. No documented compatibility guarantees for modern PHP-CS-Fixer versions (v3+), and the fixers' logic (e.g., Behat step ordering) may have edge cases not covered in tests. Scrutinizer scores are moderate but don't offset the adoption gap.

Key questions:

  • What is the actual maintenance status? (2025 release date is suspicious)
  • How does it handle PHP-CS-Fixer v3+ compatibility?
  • Are there known bugs in production usage? (zero dependents = no validation)
  • Does the Behat step ordering logic conflict with other test frameworks?

Integration Approach

Stack fit: Ideal for teams already using PHP-CS-Fixer in CI/CD pipelines. It adds no runtime dependencies and works exclusively in dev environments. Best suited for projects with Behat testing (for order_behat_steps) or strict getter/setter conventions (for ordered_with_getter_and_setter_first). Would not fit projects without existing PHP-CS-Fixer adoption.

Migration path:

  1. Add package as dev dependency
  2. Update .php_cs.dist with fixer registration and rule configuration
  3. Run fixers locally on a feature branch to validate changes
  4. Gradually enable in CI after verifying no unintended code modifications
  5. For large codebases, apply fixers incrementally by directory to minimize merge conflicts

Compatibility: Must verify PHP-CS-Fixer version constraints in the package's composer.json (not explicitly documented). Likely incompatible with PHP-CS-Fixer v3+ if not updated for the new plugin system. Requires PHP 7.4+ based on typical CS-Fixer requirements, but no explicit versioning is stated. Behat fixer assumes standard context class inheritance.

Sequencing:

  • Phase 1: Local testing on non-critical branches
  • Phase 2: Run in CI as non-blocking check to identify conflicts
  • Phase 3
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