onramplab/onr-phpcs-laravel
Opinionated PHP_CodeSniffer ruleset for Laravel projects. Provides a ready-to-use PHPCS configuration with Laravel-focused coding standards to help keep code style consistent across your app and team.
For Executives: "This package automates Laravel coding standards enforcement, saving ~2 hours/week per developer by catching formatting and best-practice issues early. For a team of 5, that’s ~40 hours/month—equivalent to hiring a junior QA engineer. It’s low-cost, open-source, and integrates seamlessly with our CI/CD pipeline, reducing bugs and improving onboarding speed."
For Engineering:
"Onr-PHP-CS-Laravel is a lightweight wrapper around PHP-CS-Fixer with Laravel-specific rules (e.g., Route::prefix() consistency, Eloquent method naming). It’s faster to set up than custom sniffs and plays nicely with our existing PHPUnit workflow. We can enforce it pre-commit or as a CI gate—no new dependencies beyond PHP-CS-Fixer. Let’s pilot it on the [Project X] repo first."
For Developers: *"This tool will auto-format your Laravel code to match team standards—no more ‘it looks fine to me’ debates in PRs. It catches things like:
@return annotations in controllers.admin.users.index vs. admin/user/index).phpcs locally before pushing, and it’ll flag issues early. We’ll configure it to fail builds if standards aren’t met."*How can I help you explore Laravel packages today?