mayflower/mo4-coding-standard
MO4 Coding Standard is a PHP CodeSniffer ruleset extending the Symfony standard with extra rules for array alignment and formatting, property doc blocks, namespace usage, and string interpolation. Install it via Composer to enforce consistent, modern PHP coding conventions across your projects.
use statements, required use of imported classes, interpolated-variable braces, const spacing, and empty-line limits. Adopting it can avoid building and maintaining similar internal sniffs.phpcs --standard=MO4 as a non-blocking or blocking CI check, with phpcbf auto-fix support for many violations.Consider it when:
use ordering, and string interpolation style.Look elsewhere when:
Executive summary: MO4 is a small, MIT-licensed PHPCS ruleset that extends Symfony Coding Standards with additional opinionated formatting rules. It is inexpensive to trial and can improve consistency and review speed for Symfony-oriented PHP teams. However, it has very low visible adoption and limited ecosystem support, so it should be treated as an optional, pinned engineering tool—not an organization-wide standard without a pilot and an exit plan.
For engineering: The package installs via Composer and integrates directly with phpcs/phpcbf; most issues are auto-fixable. The main costs are the initial baseline cleanup, potential rule conflicts, and the PHPCS 4 / PHP 8.1 requirement. Recommended approach: pilot on one repository, run in report-only mode first, document accepted deviations, pin the version, and keep a fallback to Symfony CS or PSR-12. Do not adopt it solely because it exists; adopt it only if its specific rules match the team’s desired standard.
For product: This is not a customer-facing dependency and should not affect roadmap prioritization except through engineering velocity and code-quality outcomes. The decision is low-cost and reversible, but it should not be presented as a strategic platform choice.
How can I help you explore Laravel packages today?