yiisoft/yii2-coding-standards
Yii 2 coding standards package providing PHP_CodeSniffer ruleset, sniffs, and tooling configs based on PSR-12 with Yii2-specific tweaks. Use it to enforce Yii2 core style in framework development or in existing Yii2 applications.
php-cs-fixer may suffice).rector/rector or phpstan/extension-installer for newer PHP).phpstan/phpstan instead.For Executives: "This package lets us enforce Yii2 coding standards automatically—saving devs 2+ hours/week on manual style reviews and reducing bugs from inconsistent code. It’s a lightweight, zero-maintenance way to improve code quality, especially for teams scaling Yii2 projects. Cost: Free. ROI: Faster onboarding, fewer merge conflicts."
For Engineering:
"Yii2-Coding-Standards integrates with our existing PHPCS/PHP-CS-Fixer setup to add Yii2-specific rules (e.g., naming conventions, annotation formats). It’s a drop-in replacement for custom rulesets—just add it to your CI/CD pipeline. No new tools needed; just better consistency. Example: composer require --dev yiisoft/yii2-coding-standards + update .php-cs-fixer.dist.php."
How can I help you explore Laravel packages today?