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

Php Code Style Laravel Package

longman/php-code-style

longman/php-code-style gives Laravel and PHP projects an opinionated, ready-to-use code style setup, bundling fixer rules and configs so teams can enforce consistent formatting and catch style issues with minimal effort.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy (style tooling): This package is effectively a lend rather than buy — a bundle of code-style configuration files (PHP-CS-Fixer / PHP_CodeSniffer-style presets) curated by a single author. The decision it informs is not "should we depend on this" but "should we fork its rules into our own repo-owned config."
  • Engineering onboarding & DX roadmap: A shared style config reduces review noise, merge friction, and "tabs vs. spaces" churn. If your roadmap includes a DX/quality-of-life track (CI lint gates, pre-commit hooks, editor configs), this is a reference input — not a dependency.
  • CI/lint gate definition: Useful as a starting point when standing up static analysis and formatting gates in a Laravel monorepo or new service. Treat it as a checklist of rules to evaluate, not a package to install.
  • Deprecation/consolidation decision: With Laravel Pint (2022+) and PHP-CS-Fixer's own @PSR12/@PhpCsFixer rulesets now standard, this package is largely superseded. That itself is a decision: consolidate on a maintained tool, don't proliferate stale presets.
  • Not a product differentiator. Code style is table-stakes DX hygiene, not customer-facing value. It should not consume roadmap capacity beyond a one-time adoption spike.

When to Consider This Package

Consider it when:

  • You are bootstrapping a PHP/Laravel codebase and want a ready-made, opinionated config to read and cherry-pick rules from.
  • You want a sanity check on rule choices (line length, import ordering, strict types, etc.) against another practitioner's defaults.
  • Your team has no existing standard and needs a low-effort starting template before formalizing its own.

Look elsewhere when (i.e., almost always for actual dependency use):

  • Maintenance matters: Last release June 2017 — no PHP 8.x era updates, no PSR-12/PER-CS alignment guarantees, zero dependents and ~9 stars means no community backstop. An eight-year-stale config dependency is a liability.
  • You are on Laravel: Use Laravel Pint (official, maintained, presets included) or PHP-CS-Fixer's built-in rulesets. They cover the same ground with active support.
  • You need enforcement, not just config: Pair any choice with CI (php-cs-fixer/Pint in dry-run mode) and pre-commit hooks; the package provides files, not process.
  • Supply-chain review applies: Even config-only packages should be vendored or copied rather than pulled as a transitive dependency you don't control.

Recommended posture: Copy the rules you like into a repo-owned .php-cs-fixer.dist.php (or Pint config), attribute under MIT, and pin to your own maintenance. Do not add it to composer.json as a runtime/dev dependency.

How to Pitch It (Stakeholders)

To executives (30 seconds): This is a small, MIT-licensed set of PHP code-style configs — not a strategic dependency. It has no active maintenance and essentially no adoption, so we are not adopting it as a dependency. We may borrow a few rules into our own config at negligible cost, which keeps our tooling fully owned and supported. Ask: no budget, no headcount — a one-time review only.

To engineering leadership: Code style is hygiene, not differentiation. The pragmatic move is to standardize on a maintained tool (Laravel Pint for Laravel, PHP-CS-Fixer elsewhere), enforce it in CI, and treat this package as a reference document. This avoids a stale dependency and keeps our standards internally owned.

To engineering (the ask): Spend a short spike reviewing the configs, extract any rules worth keeping into our versioned formatter config, and wire it into CI + pre-commit. Acceptance criteria: formatter runs green in CI, config is repo-owned and versioned, and no new external dependency is introduced. Risk if we skip it: continued style churn in reviews — low severity, easily absorbed.

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.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core