Weave 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

Laravel Php Cs Fixer Laravel Package

stechstudio/laravel-php-cs-fixer

A Laravel wrapper around PHP-CS-Fixer that adds Artisan commands to check and fix your code style with sensible defaults. Configure rules and paths in a single config file, then run fixes locally or in CI for consistent formatting across your project.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardize code style without owning the tooling. The package is a thin Artisan wrapper around FriendsOfPHP/PHP-CS_Fixer, so it converts "we should have a consistent style" from an engineering-side project into a one-line developer workflow (php artisan fixer:fix style commands). That makes it a cheap enabler for a decision you've probably already made in principle.
  • Build vs. buy vs. wire-up. The realistic options are: (a) adopt this package, (b) have an engineer write and maintain the same wrapper internally, or (c) adopt Laravel Pint. This package is the "buy" option at near-zero cost — but the honest framing is that (b) is a half-day of work and (c) is first-party. Use this evaluation to decide whether the wrapper is worth a dependency at all, not whether to do style enforcement.
  • Enforcing style in CI vs. relying on convention. Wrapping the fixer in Artisan commands makes it trivial to add a lint/dry-run step to CI and a pre-commit hook, which is a concrete, low-risk roadmap item that reduces review noise and diff churn.
  • Onboarding and legacy cleanup. A single standardized command lowers the cost of bringing contractors and new hires onto a codebase, and gives you a repeatable way to burn down style debt in legacy modules without a bespoke script per repo.
  • Prioritization signal on developer experience. If your team is hand-rolling fixer invocations, duplicated config, or per-repo scripts, that's recurring toil you can retire. If they're already on Pint, this is a non-decision — which itself is a useful roadmap answer.
  • Not a product differentiator. Nothing here reaches customers. Treat it as internal tooling hygiene: budget it as a small DX line item, not a roadmap initiative.

When to Consider This Package

Consider it when:

  • You run Laravel 8/9-era applications where PHP-CS-Fixer is already the chosen style engine and you want it invocable through Artisan rather than raw vendor binaries.
  • You have multiple Laravel repos and want a consistent, documented entry point for formatting and linting without writing and maintaining that wrapper yourself.
  • Your team is small and the wrapper is genuinely a convenience — the cost of adoption is one Composer dependency and a config file, and the cost of removal is similarly trivial.
  • You need a low-commitment pilot: run the dry-run/lint command in CI on one repo for a sprint and measure review churn before rolling it out.

Look elsewhere when:

  • You're on a current Laravel version. Laravel Pint is first-party, built on PHP-CS-Fixer, requires zero configuration, and is the default answer. For most teams today, Pint is the correct choice and this package is redundant.
  • Maintenance freshness matters. Last release was 2022-02-10 with ~146 stars — low adoption and no recent activity. Verify compatibility against your PHP version and the current PHP-CS-Fixer major before committing; an unmaintained wrapper around a fast-moving fixer is a future upgrade blocker.
  • You're not on Laravel. The entire value is the Artisan integration; outside Laravel, use PHP-CS-Fixer directly.
  • You need parallelism, custom rule sets, or monorepo path scoping at a level the wrapper doesn't expose — call the fixer binary directly so you stay on its release cadence.
  • Your org requires actively maintained dependencies for security/support policy reasons. A stale wrapper fails that bar even though the underlying fixer is healthy.

How to Pitch It (Stakeholders)

For executives (one line): A near-zero-cost, low-risk internal tooling add-on that standardizes PHP code formatting across our Laravel services, reducing review churn and onboarding time — with no customer-facing impact and trivial removal cost.

For engineering leadership: This is a convenience wrapper, not a platform. It gives us a single documented Artisan entry point for PHP-CS-Fixer, which makes a CI lint gate and pre-commit hook a same-day change instead of a small project. The trade-off is clear and worth stating plainly: the package is unmaintained since early 2022 with modest adoption, while Laravel Pint now provides the same underlying engine first-party with zero config. Recommendation: treat this as a stopgap only if we're on an older Laravel version and already standardized on PHP-CS-Fixer; otherwise adopt Pint, which gets us the same outcome with a maintained dependency. Either way, the decision is reversible in an afternoon — so decide quickly, measure review churn for one sprint, and don't let it consume roadmap attention.

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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo