wyrihaximus/coding-standard
PHP coding standard package for consistent formatting and style in PHP projects. Provides ready-to-use rulesets and configuration to streamline linting, code style checks, and enforcement across teams and CI pipelines.
@api annotation bans).--allow-risky=... flags.Adopt this package if:
@api, enforcing specific docblock formats) without writing them from scratch.Look elsewhere if:
For Executives: "This package lets us enforce consistent, high-quality PHP code automatically—reducing bugs, speeding up reviews, and lowering onboarding time. It’s like a ‘linter on steroids’ for our Laravel apps, built on top of industry-standard tools. The upfront cost is minimal (MIT license, no vendor lock-in), and the long-term ROI comes from fewer merge conflicts and cleaner code. We’re not reinventing the wheel; we’re leveraging battle-tested rules from the PHP ecosystem."
For Engineering:
"WyriHaximus’ coding standard gives us a pre-configured, opinionated set of rules (PSR-12 + Slevomat + Doctrine) with custom tweaks (e.g., banning @api annotations). It integrates seamlessly with our existing CI (GitHub Actions/GitLab CI) and can block PRs with violations. Since it’s a wrapper for PHP_CodeSniffer, we get all the familiar tooling (e.g., --diff, --fix) but with less maintenance overhead. Zero stars? True, but the underlying libraries (Slevomat, Doctrine) are rock-solid. We can fork it later if we need customizations."
For Developers: *"This means:
./vendor/bin/php-cs-fixer fix or add it to your pre-commit hooks.
We’re not adding complexity; we’re reducing busywork."*How can I help you explore Laravel packages today?