laravel/ranger
Laravel Ranger is a beta introspection library for Laravel apps. It walks your codebase to discover routes, models, enums, broadcast events, env vars, and Inertia components, firing callbacks with rich DTOs so you can analyze or export app metadata.
Developer Tooling & Observability:
Roadmap Acceleration:
php artisan route:list) with a unified introspection layer for future Laravel features (e.g., "What-if" analysis for route changes).@feature-flag:new-payments).Build vs. Buy:
Use Cases:
config/ and actual runtime environment variables.route:list, make:model) may suffice."Laravel Ranger is a force multiplier for our engineering team—it turns undocumented, tribal-knowledge codebases into a searchable, actionable inventory. Think of it like a ‘Ctrl+Shift+F’ for your entire Laravel app: instantly find where a model is used, spot unused routes clogging deployments, or validate environment configs before they hit production. This isn’t just tooling; it’s reducing cognitive load and accelerating feature delivery by cutting the time spent ‘debugging the structure’ of the app. For $0 cost (MIT license) and minimal setup, it’s a no-brainer for teams scaling Laravel beyond 50K LoC."
Ask: "Would you prioritize a 20% reduction in onboarding time for new hires if it meant they could self-serve answers to ‘Where is this route defined?’ in seconds?"
*"Ranger is a swiss-army knife for Laravel introspection—it’s like artisan on steroids. Here’s how it unlocks value for us:
Replace Manual Discovery:
greping for Route::get or php artisan route:list | grep x. Ranger programmatically scans routes, models, Inertia components, and even environment variables, letting us hook into the data with callbacks.onRoute callback.Build Internal Tools Faster:
create() instead of factory().CI/CD Superpowers:
env() values match your config/ defaults.Low Risk, High Reward:
Trade-offs:
Proposal: Let’s POC this in 2 hours by building a CLI tool to list all models + their usage. If it saves us 1 hour/week per dev, it pays for itself in a month."*
Ask: "What’s the top 1–2 pain points in our codebase where manual discovery slows us down? Can Ranger solve one of them?"
How can I help you explore Laravel packages today?