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

jubeki/laravel-code-style

Opinionated code style configuration for Laravel projects. jubeki/laravel-code-style provides a ready-to-use Pint preset to enforce consistent formatting and coding conventions across your app, helping teams keep clean, predictable PHP code with minimal setup.

Deep Wiki
Context7

Product Decisions This Supports

  • Standardizing code style across a portfolio of Laravel apps and packages. If your org ships multiple Laravel services or internal packages, this package lets you layer project-specific fixers (custom naming conventions, banned patterns, import ordering rules unique to your domain) on top of Pint's opinionated ruleset — rather than choosing between "Pint only, accept the gaps" or "abandon Pint and hand-maintain a PHP-CS-Fixer config."
  • Build vs. buy for internal linting tooling. Teams frequently reach a fork in the road: (a) write and maintain a bespoke PHP-CS-Fixer wrapper, (b) enforce conventions purely through human code review, or (c) adopt a thin layer like this. This package shifts the decision toward "buy/consume" — you get custom-fixer support without owning the orchestration layer against Pint's evolving ruleset.
  • Roadmap input on developer-experience and platform-engineering bets. Adopting it is a signal that code-style consistency is treated as infrastructure, not a per-team preference — useful when scoping a platform-engineering charter, a shared php-cs-fixer/Pint baseline, or a monorepo-wide formatting gate.
  • Feature decisions around CI cost and review throughput. Automated fixers reduce review comments on style nits, shortening PR cycles. If you're prioritizing "reduce time-to-merge" or "lower CI minutes," this is a concrete lever with measurable impact and near-zero procurement cost (MIT).
  • Concrete use cases: monorepo/package suites needing one shared style contract; teams with a handful of house rules Pint doesn't ship; onboarding standardization so new engineers inherit enforced conventions on day one.

When to Consider This Package

Adopt when:

  • You already use Laravel Pint and have at least a few custom fixers or house rules you want enforced alongside it — this is precisely the gap it fills.
  • You maintain multiple Laravel apps or packages and want a single, reproducible style configuration rather than divergent per-repo setups.
  • Code review is being taxed by style noise, or you're formalizing a pre-commit / CI formatting gate and want custom rules without a bespoke wrapper to maintain.
  • You value low cost and low lock-in: MIT-licensed, thin surface area, runs in CI or locally, and easy to unwind.
  • Your team is comfortable with PHP-CS-Fixer semantics (custom fixers inherit that complexity).

Look elsewhere when:

  • Pint out-of-the-box already covers you — adding a dependency for parity's sake is overhead with no payoff; use Pint directly.
  • You need heavyweight static analysis (type errors, dead code, security) — that's PHPStan/Psalm/Psalm-style tooling, a different layer entirely. This is style, not correctness.
  • Supply-chain or single-maintainer risk is a dealbreaker. At ~55 stars this is a small, niche package; if your org mandates vendor due diligence or long-term support guarantees, weigh the maintenance bus factor and consider vendoring the pattern internally.
  • You're not on Laravel or have deliberately moved off Pint — the value proposition is Pint-specific.
  • You need a guaranteed, versioned style SLA across a large distributed org where a first-party or commercially backed tool is preferred for procurement reasons.

How to Pitch It (Stakeholders)

For executives: This is a low-cost, MIT-licensed developer-productivity tool that enforces consistent code style automatically instead of through manual review. It closes a known gap — Laravel's own formatter (Pint) doesn't natively support the custom rules many teams need — so we get standardized code without building and maintaining our own tooling. Expected effect: fewer style-related review cycles, faster merges, cleaner onboarding. Risk is contained: small surface area, no runtime dependency, and straightforward to remove if it doesn't pay off.

For engineering leadership: It's a thin layer over Laravel Pint that lets us register custom PHP-CS-Fixer rules while inheriting Pint's ruleset and updates. That means one style contract across our apps and packages, enforceable in CI and pre-commit hooks. We avoid owning a fork of Pint's config as its rules evolve. Caveats to flag: it's a small, single-maintainer project, so treat it as a convenience wrapper rather than a critical-path dependency — vendor or pin it, and keep a fallback to plain Pint. It solves formatting consistency, not correctness or static analysis; budget those separately. Recommend a time-boxed pilot on one repo to measure review-comment reduction and CI impact before org-wide rollout.

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.
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen