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 Code Style Laravel Package

matt-allan/laravel-code-style

Automatic code style checking and fixing for Laravel projects. Wraps PHP-CS-Fixer with Laravel-specific rules and presets, so you can enforce consistent formatting across your app, packages, and tests with a single command.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardizing code style across a Laravel codebase. The package enforces a single, framework-idiomatic formatting standard via an artisan command, which directly supports the decision to stop debating whitespace, import ordering, and brace placement in code review. The measurable outcome is smaller, faster PRs and fewer nitpick comments.
  • Build vs. buy for internal tooling. Rather than having a platform engineer write and maintain a bespoke php-cs-fixer configuration, this package supplies a curated Laravel preset. That is a "buy" (adopt) decision with a near-zero price tag (MIT) and hours—not weeks—of integration effort.
  • CI gating policy. The package supports a check/dry-run mode, which lets you decide whether formatting violations block a merge or merely warn. This is a real policy decision with team-velocity tradeoffs, and the tool makes either option cheap to implement.
  • Onboarding and consistency at scale. New hires and contractors inherit the house style automatically instead of absorbing it through review feedback. Relevant when you're scaling a team faster than you can scale mentorship.
  • Roadmap and tech-debt triage. Because the package is archived, it is itself an input to a portfolio decision: identifying superseded dependencies in the stack and sequencing their replacement. Its main strategic value today is as a migration waypoint, not a destination.
  • Use cases where it fits: legacy Laravel applications on older PHP versions, monorepos where several packages need one shared style, and one-time cleanup of a codebase that has never been formatted.
  • Important caveat for the decision record: Laravel ships Pint, a first-party formatter, which occupies the same slot in the stack and is actively maintained. For any greenfield or upgradeable project, the correct buy decision is Pint; this package's decision value is confined to "what do we do about apps that can't get there yet."

When to Consider This Package

Consider it when:

  • You maintain a Laravel application pinned to an older PHP/Laravel version where Pint cannot be installed, and a framework upgrade is not on the near-term roadmap.
  • You want Laravel-aware formatting rules without hand-maintaining a php-cs-fixer config, and the preset's opinions match your team's.
  • You are auditing an existing dependency: a project already depends on it, and you need to understand what it does before planning removal.
  • You need a short-lived bridge—format a legacy codebase now, migrate to Pint when the upgrade lands.

Look elsewhere when:

  • You are starting a new Laravel project, or you're on Laravel 9+/PHP 8+. Use Laravel Pint: first-party, maintained, same workflow.
  • Your organization has a policy against archived or unmaintained dependencies, or your supply-chain/security review requires an active maintainer and a patch path.
  • You need upstream fixes, new PHP version support, or security response—there is no one to provide them.
  • You need IDE/editor integration, parallelized formatting for large repos, or a supported custom rule set at scale; the ecosystem around Pint is the safer bet.
  • The cost of adoption exceeds the cost of the eventual migration—i.e., adopting this now means formatting twice.

How to Pitch It (Stakeholders)

For executives (one paragraph): This is a small, free, MIT-licensed tool that automatically formats Laravel PHP code to a consistent style. Adopting it costs a few engineering hours and measurably reduces the time senior engineers spend reviewing formatting in pull requests—an invisible but recurring tax on every change. The catch is that the project is archived and has been functionally superseded by Laravel's own first-party formatter, Pint. Recommendation: standardize on Pint, and treat this package only as a stopgap for legacy applications that cannot yet upgrade. No license spend, no vendor lock-in, and a clear exit path either way.

For engineering leadership: Low-risk, low-effort, one-command adoption with a CI check mode. The risk is not technical failure—it's dependency hygiene: an archived package means no fixes if a future PHP release breaks it. Frame the ask as "formatting standard now, Pint migration scheduled."

For the engineering team: One composer require --dev, one artisan command, one CI step. It removes formatting arguments from review permanently. But do not build new workflows on it—if you're on Laravel 9+, we should be using Pint, and the effort to switch is hours.

For the decision log: Adopt for legacy apps only; do not adopt on new work; add "replace with Pint" as a tracked item wherever it is installed.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console