tightenco/tlint
Tighten’s opinionated linter for Laravel and PHP projects. Enforces consistent conventions and catches style issues using preset and custom rules, runnable via CLI or CI. Built on PHP_CodeSniffer with sensible Laravel-focused defaults.
NoDump (e.g., dd(), ray()) or NoRequestAll violations exist.FullyQualifiedFacades, AnonymousMigrations) to batch-update codebases to align with Laravel 8+ best practices, reducing manual refactoring effort.Tighten or Laravel) to enforce project-specific rules (e.g., disallow Auth::user() in favor of auth()->user()) via tlint.json configuration.UseConfigOverEnv) via CLI commands (./vendor/bin/tlint fix), reducing ramp-up time.Avoid if:
SquizLabs/PHP_CodeSniffer rules.Consider if:
tlint check, tlint fix) without complex setup."tlint automates Laravel’s ‘unwritten rules’—like a spellcheck for PHP. It catches issues like hardcoded dd() calls, inconsistent facades, or messy Blade templates before they reach production, saving dev time and reducing bugs. For example, it can auto-fix 80% of new hire onboarding issues in minutes. Think of it as GitHub Copilot for code quality—but for Laravel’s conventions. With zero maintenance overhead (MIT-licensed, actively updated), it’s a no-brainer for teams scaling Laravel apps."
*"tlint is a Swiss Army knife for Laravel codebases:
Auth::user() instead of auth()->user()) with zero false positives.tlint fix.tlint.json (e.g., block route('home') in favor of named routes).composer require --dev tightenco/tlint
./vendor/bin/tlint check --preset=laravel
Best for: Teams tired of manual code reviews for Laravel-specific style guides. Try it on a PR—you’ll wonder how you lived without it."*
How can I help you explore Laravel packages today?