Discover and explore top open-source AI tools and projects—updated daily.
laramintVisualize and analyze Laravel application architecture
Top 41.3% on SourcePulse
LaraMint\LaravelBrain visualizes Laravel application request lifecycles as interactive graphs, enabling developers to quickly understand complex codebases. It analyzes routes, controllers, services, models, jobs, events, commands, and channels, providing a bird's-eye view to aid in debugging and architectural comprehension.
How It Works
The tool operates via the php artisan brain:scan command, which recursively analyzes PHP files within the routes/ directory and traces call chains from controller actions through services, repositories, models, jobs, and events. Specialized analyzers identify database queries, Eloquent relationships, Artisan commands, scheduled tasks, and broadcast channels. The collected data is assembled into a graph structure and served as a React Single Page Application through Laravel routes, accessible via /_laravel-brain. This approach offers deep introspection without manual code reading.
Quick Start & Requirements
composer require --dev laramint/laravel-brain. Laravel auto-discovers the service provider.php artisan brain:scan to analyze the project. Then, navigate to the provided URL (e.g., http://localhost:8000/_laravel-brain) in your browser while your Laravel application is running.php artisan brain:scan --watch.Highlighted Details
brain:export-context command. It can also generate AI assistant rule files (brain:generate-rules) for various coding assistants.laramint/laravel-stress to perform concurrent HTTP load tests directly from a selected route node within the UI.Maintenance & Community
The project welcomes pull requests. While specific community links (Discord/Slack) or notable contributors are not detailed in the README, the project actively supports recent Laravel versions up to 13, indicating ongoing maintenance.
Licensing & Compatibility
composer install --no-dev. Routes are registered only in the local environment by default.Limitations & Caveats
This tool is strictly for development and should not be present in production environments. By default, its routes are only registered locally. If deployed in a networked, non-production environment, securing the /_laravel-brain routes with appropriate middleware is recommended. Target hosts for stress testing are enforced by the package.
1 week ago
Inactive
langwatch
openai