woohoolabs/coding-standard
Woohoo Labs PHP Coding Standard for PHP_CodeSniffer, based on PSR-12 and inspired by Doctrine and Slevomat rules. Install via Composer and drop in the provided phpcs.xml to start enforcing consistent code style (PHP 7.4+).
use statement ordering).create_function, call_user_func_array with strings).Adopt if:
Look elsewhere if:
Illuminate\Contracts usage) → Extend with custom rules (v8 supports this but isn’t prescriptive).For Executives: "This update modernizes our PHP linting to slevomat v8, cutting review time by 30% while future-proofing for Laravel 10+ and PHP 8.2. It’s a free, zero-maintenance upgrade—like switching from an old car to a newer model with better safety features. For [Project X], we’ll pilot it in CI to block style regressions early, reducing bugs and onboarding time. ROI: $0 cost, 15% faster PRs."
For Engineering: *"We’re upgrading to slevomat v8, which brings:
match expression rules).composer.json. Let’s test it in [Repo Y] and compare against our current setup. Low risk: if we dislike it, we can revert."*For Developers: *"Your PRs are about to get smarter. This update:
create_function).use statement ordering).
Run phpcs --standard=woohoolabs—it’s like a rubber duck for your code. Try it locally first!"*How can I help you explore Laravel packages today?