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

Technical Evaluation

Recommendation: Treat matt-allan/laravel-code-style as legacy developer tooling, not a strategic dependency. Do not adopt it for new Laravel projects; standardize on Laravel Pint. For existing projects already using it, pin the version, constrain it to dev/CI use, and fund a migration to Pint.

Architecture fit: The package is a development-time code formatter, not runtime application infrastructure. It should sit in require-dev, run locally and in CI, and have no production deployment footprint. Architecturally that is a good fit for Laravel teams because it applies a consistent PHP-CS-Fixer-based ruleset without changing application code. The fit weakens for modern Laravel because Pint is the first-party, Laravel-maintained formatter and is already the default expectation in current Laravel projects. The package is therefore a legacy convenience layer, not an architecture enabler.

Integration feasibility: Basic integration is straightforward for a compatible legacy stack: add as a Composer dev dependency, publish or commit its config, expose a Composer script or CI job, and run it in check mode on pull requests. The real feasibility question is dependency compatibility. As an archived package, its PHP, Laravel, and php-cs-fixer constraints may not resolve against current PHP/Laravel versions. A TPM should require a compatibility spike in a disposable branch before approving adoption. If Composer resolution fails, the package is not viable without a fork.

Technical risk: The primary risk is lifecycle, not runtime. The repository is archived, so there is no upstream compatibility work, no bug-fix cadence, no security-response process, and no guarantee of support for new Laravel or PHP releases. Because it is dev-only, production blast radius is limited, but supply-chain and CI reliability risks remain. Rule drift is another risk: formatting output can change when underlying PHP-CS-Fixer versions move, creating noisy diffs or CI failures. The package also risks false confidence if teams assume it is the supported Laravel standard; it has been superseded by Pint.

Key questions:

  • Which Laravel and PHP versions must be supported, and does the package resolve cleanly under those constraints?
  • Is Laravel Pint acceptable as the target standard, or are there package-specific rules that must be preserved?
  • Are there custom formatting rules, and can they be expressed in Pint or a maintained PHP-CS-Fixer config?
  • Will this run only in CI, or also as a local pre-commit hook? Who owns the developer workflow?
  • What is the exit plan if the package blocks a PHP or Laravel upgrade?
  • Is forking acceptable, and who would own the fork, tests, and release process?
  • Does the organization allow archived dev dependencies under supply-chain policy?

Integration Approach

Stack fit: Best fit is an older Laravel application or monorepo already standardized on PHP-CS-Fixer and unwilling to change formatters mid-cycle. Poor fit for greenfield Laravel, platform teams standardizing on current Laravel, or organizations with a policy against archived dependencies. The package should never be introduced into production runtime dependencies.

Migration path: For an existing user, freeze the current behavior first: pin the package version, commit the generated config, and run the formatter in CI check mode. Then pilot Pint in a branch using the same or nearest-equivalent ruleset, compare diffs, and resolve intentional differences. Once Pint is accepted, replace the package command with Pint in Composer scripts and CI, remove the archived dependency, and update developer docs. For a new adoption request, skip the package and evaluate Pint directly.

Compatibility: Validate with a small compatibility matrix: supported PHP versions, supported Laravel versions, and the resolved php-cs-fixer version. Run composer why-not against the target stack and test in a clean CI image. Check that the package’s command or binary is available after install and that CI can cache Composer and formatter artifacts. Do not assume compatibility from the package’s Laravel version constraint alone.

Sequencing:

  1. Inventory repositories and confirm actual usage.
  2. Run a compatibility spike on the oldest and newest supported stacks.
  3. Pin versions and add a CI formatting gate.
  4. Baseline-format the codebase in an isolated commit.
  5. Pilot Pint and compare rule output.
  6. Migrate repositories in waves, starting with low-risk services.
  7. Remove the archived package and update onboarding docs.
  8. Add a policy note directing new projects to Pint.

Operational Impact

Maintenance: Upstream maintenance is effectively zero because the repository is archived. Any ongoing maintenance becomes internal: dependency pins, fork upkeep, PHP-CS-Fixer upgrades, and config drift. That is a poor use of engineering time for a formatter when a first-party alternative exists. If the package is retained, assign explicit ownership and a review date.

Support: Support is community-only and historical. There is no vendor SLA, no active issue triage, and no guaranteed response to breakage. Developers will find more current documentation and answers for Pint than for this package. Internal support should be limited to “use the pinned command” and “migrate to Pint.”

Scaling: Scaling across many repositories is possible but operationally repetitive: each repo needs a pinned dependency, config, CI step, and cache strategy. Formatting checks can add CI minutes, especially on large codebases, so use path filters, caching, and changed-file checks where appropriate. A platform team can standardize a shared CI template, but that template should target Pint, not an archived package.

Failure modes:

  • Composer resolution failure after a PHP or Laravel upgrade.
  • CI breakage when the formatter command or binary changes.
  • Noisy diffs from PHP-CS-Fixer rule or version drift.
  • Inconsistent formatting because some repos pin different versions.
  • False sense of standardization if CI gates are not enforced.
  • Fork divergence and undocumented local patches.
  • Supply-chain policy violations for archived dependencies.

Ramp-up: Developer ramp-up is low for anyone familiar with PHP-CS-Fixer or Pint: install, run, fix. The package’s own documentation and command surface are small. The larger ramp-up is organizational: agreeing on a target formatter, baselining existing code, and migrating CI. Pint is the better long-term learning investment because it is the current Laravel standard and keeps team knowledge transferable.

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.
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
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