sunrise/coding-standard
Sunrise PHP Coding Standard provides a ready-to-use PHPCS ruleset (ruleset.xml) you can reference in your project to enforce consistent code style across src and tests, aligned with PSR-1 and PSR-2.
Adopt if:
Look elsewhere if:
php-cs-fixer or PHP_CodeSniffer with custom configs).For Executives: "This lightweight, open-source package enforces PHP coding standards (PSR-1/PSR-2) automatically in our CI pipeline, reducing manual code reviews and onboarding time. It’s a low-cost way to improve code consistency across the team—think of it as ‘auto-formatting for style.’ Since it integrates seamlessly with Laravel and PHP, we can roll it out without disrupting existing workflows."
For Engineering: *"The Sunrise Coding Standard is a minimalist alternative to PHP_CodeSniffer for teams already aligned with PSR-1/PSR-2. It’s:
src/ and tests/).For Developers:
*"Add this to your composer.json and your CI will auto-check your code against PSR-1/PSR-2. No more ‘style nitpicks’ in PRs—just fix the errors the bot flags. Example setup:
composer require sunrise/coding-standard
Then configure it in your phpcs.xml:
<rule ref="vendor/sunrise/coding-standard/ruleset.xml"/>
<file>src/</file>
<file>tests/</file>
Run it via ./vendor/bin/phpcs in CI. Done."*
How can I help you explore Laravel packages today?