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.
dd() usage, facade imports, route path formatting) early in the development cycle.Adopt if:
dump() calls, facade usage, route formatting).Look elsewhere if:
*"TLint is a Laravel-specific linting tool that automates code quality checks to save time and reduce errors. By enforcing best practices—like eliminating dd() calls, standardizing facade imports, and formatting Blade directives—we can:
*"TLint is a Laravel-native linter that replaces manual code reviews for common anti-patterns. Key benefits:
dump()/dd() usage, enforces fully qualified facades, validates route paths, and more—no configuration needed to start.use statements, reformatting Blade directives).tlint.json or add new linters for team-specific needs.
Example: Before TLint, we spent hours reviewing PRs for dd() calls or inconsistent facade imports. Now, TLint catches these automatically, freeing us to focus on higher-value work."**"TLint is like a rubber duck for your code—it points out Laravel-specific issues before they become bugs. Here’s what it fixes:
dd(), dump(), and @ray directives in production-like environments.use Illuminate\Support\Facades\Log;).@if, @foreach, and directives./users instead of /users/).
Best part? It integrates with your IDE (via CLI) and CI, so you’ll see errors before you commit. Try running ./vendor/bin/tlint—it’s faster than manual reviews!"*How can I help you explore Laravel packages today?