wyrihaximus/coding-standard
wyrihaximus/coding-standard is a PHP coding standard package for defining and enforcing consistent code style across PHP projects. It provides a shared standard to help keep formatting and conventions uniform in a codebase.
Architecture fit
require-dev PHP_CodeSniffer ruleset. There is no runtime coupling to Laravel, no service provider, no config publish, no migrations. Blast radius in production is effectively zero, which is the single strongest argument for evaluating it at all.doctrine/coding-standard, slevomat/coding-standard, and squizlabs/php_codesniffer, registered via dealerdirect/phpcodesniffer-composer-installer. Original code surface is small; the dependency surface and thus the behavioral surface is large.@api from forbidden annotations). We would be adopting someone's personal preferences as an organizational standard without documented intent.Integration feasibility
require-dev, drop a phpcs.xml referencing the standard, run phpcs/phpcbf in CI or a Composer script.use ordering, early-exit requirements, forbidden annotations, and requirements around declare(strict_types=1) in every file. Expect meaningful false-positive triage on Eloquent models, facades, magic methods, and Blade-adjacent service classes.Technical risk
Key questions to resolve before committing
Stack fit
require-dev only; never in production autoload. Composer plugin registration means the standard name becomes globally available to PHPCS in that project.phpcs.xml that extends the upstream standard rather than consuming it wholesale. This gives us a seam to disable noisy sniffs without forking.composer lint), and IDE inspection (PhpStorm's PHPCS quality tool) so developers see failures before pushing.Migration path
phpcbf, (b) legitimately fixable by hand, (c) framework-idiom false positives to be excluded.phpcbf on the mechanical subset in a single isolated commit — this is the bulk of the value and the cheapest win.git blame" problem.Compatibility
^4.0 could pull a rule change mid-sprint; treat this dependency like a compiler, not a library.Sequencing
Maintenance
our-coding-standard extending this one) so that a single upstream surprise can be neutralized in one place rather than N repositories.Support
Scaling
Failure modes to plan for
phpcbf and Pint rewriting each other in pre-commit loops. Mitigation: single owner of style, enforced in config.phpcs:ignore to silence framework idioms until the gate is meaningless. Mitigation: maintain a curated, reviewed exclusion list for Laravel patterns.Ramp-up estimate
TPM bottom line: cheap to trial, cheap to abandon, and low technical risk because it never touches production. The decision is a process-and-ownership decision, not an architecture one. The 26/100 score and zero dependent count argue against mandating it organization-wide on faith; run the report-only spike, and if the noise ratio is poor or the Pint overlap proves messy, porting a handful of Slevomat sniffs into an internally-owned ruleset is the better long-term bet.
How can I help you explore Laravel packages today?