PHPackages                             faizankamal/symfony-route-inspector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. faizankamal/symfony-route-inspector

ActiveSymfony-bundle[API Development](/categories/api)

faizankamal/symfony-route-inspector
===================================

Visual Symfony route inspector + API explorer (dev bundle)

v1.1.0(4mo ago)14MITJavaScriptPHP &gt;=8.1

Since Dec 11Pushed 4mo agoCompare

[ Source](https://github.com/FaizanKamal7/symfony-route-inspector)[ Packagist](https://packagist.org/packages/faizankamal/symfony-route-inspector)[ RSS](/packages/faizankamal-symfony-route-inspector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

Symfony Route Inspector
=======================

[](#symfony-route-inspector)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net)[![Symfony Version](https://camo.githubusercontent.com/cd423f5f8dbb75d283c3610f29c7a188fb17d8f834942c20e1b21350caf0d642/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253545372e30253230253743253743253230253545382e302d677265656e2e737667)](https://symfony.com)

> A visual, interactive developer dashboard for inspecting, analyzing, and exploring Symfony routes with real-time insights and API explorer capabilities.

[![Thumbnail](https://private-user-images.githubusercontent.com/57044214/525562141-2a46671d-6118-41c2-8fce-3fe40aa43a35.png?jwt=eyJ0eXAiO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FLNFpBJTJGMjAyNjA0MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA2VDE3MDk1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1MTczMzkyMDdiY2RjMjljOWQwNzYxMjkyNGU4ZDRmZWRhYTYyZTVmYmNhMDJkNDBhZDkxMzZhMWU0ZmQwYWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1BYkyy-s4wK6t02TeVgqVdh3t2tMu4PlnQMxcGFXKdE)Why This Bundle?
----------------

[](#why-this-bundle)

While Symfony provides `bin/console debug:router` and the Symfony Profiler for route inspection, **Symfony Route Inspector** takes it several steps further by providing:

- **Visual Interactive Dashboard** - Beautiful, modern UI with dark/light theme and real-time route exploration
- **Route Graph Visualization** - Interactive hierarchical tree view showing your entire route structure with zoom and pan
- **SQL Query Tracking** - Real-time SQL query monitoring with N+1 detection, slow query identification, and duplicate query tracking
- **Performance Issue Detection** - Automatically identifies slow routes and N+1 query problems with severity ratings
- **Grouped Route Visualization** - Routes organized by bundles/controllers for better architectural understanding
- **Usage Analytics** - Track endpoint usage with heatmaps and performance metrics (mock data included, ready for real integration)
- **HTTP Method Badges** - Instantly see which HTTP methods (GET, POST, PUT, DELETE, PATCH) each route supports
- **Developer-Friendly** - Built specifically for development environments with zero configuration

This isn't just another route listing tool - it's a comprehensive route analysis and performance monitoring dashboard that provides architectural insights no standard Symfony tool offers visually.

Symfony Route Inspector vs Symfony Profiler
-------------------------------------------

[](#symfony-route-inspector-vs-symfony-profiler)

FeatureSymfony Route InspectorSymfony Profiler**Route Visualization**✅ Interactive graph with hierarchy❌ No visual representation**All Routes Overview**✅ Single dashboard view of all routes❌ Shows only current request's route**Route Grouping**✅ Grouped by bundles/controllers❌ No grouping**SQL Query Tracking**✅ Aggregated view across requests✅ Per-request only**N+1 Query Detection**✅ Automatic detection with alerts⚠️ Manual inspection required**Performance Issues**✅ Dashboard with severity ratings❌ Not available**Route Graph**✅ Interactive tree with zoom/pan❌ Not available**Search &amp; Filter**✅ Advanced filtering by method, bundle, name❌ Limited search**Dark/Light Theme**✅ Toggle between themes❌ Single theme**Real-time Statistics**✅ Route counts, methods breakdown❌ Not available**Zero Configuration**✅ Works out of the box✅ Built-in**Export Capabilities**✅ SVG export for graphs❌ Not available### Why Choose Symfony Route Inspector?

[](#why-choose-symfony-route-inspector)

**Symfony Profiler** is excellent for debugging individual requests, but **Symfony Route Inspector** provides:

1. **Complete Application Overview** - See ALL your routes at once, not just the current request
2. **Proactive Problem Detection** - Identifies N+1 queries and slow routes before they become issues
3. **Better Route Organization** - Understand your application architecture through visual grouping
4. **Performance Monitoring** - Track query performance across all endpoints in one place
5. **Modern UX** - Beautiful, intuitive interface that developers love to use
6. **Architectural Insights** - Route hierarchy visualization shows how your application is structured

**Use Both Together**: Symfony Profiler for per-request debugging + Route Inspector for application-wide route analysis and performance monitoring.

---

Features
--------

[](#features)

### Core Features

[](#core-features)

- **Interactive Route Map** - Graphical tree of all routes grouped by bundles or controllers
- **Real-Time Statistics** - Total routes, secured routes, HTTP methods breakdown
- **Advanced Filtering** - Search by name, path, controller, HTTP method, or bundle
- **Route Analytics** - Mock endpoint usage tracking with hit counts and response times (ready for production integration)
- **Security Insights** - Quickly identify secured vs public routes
- **Middleware Visualization** - See which services and middleware are attached to each route
- **Beautiful Dashboard** - Modern, dark-themed UI built with Vue.js 3

### Technical Highlights

[](#technical-highlights)

- Zero build step required (uses CDN Vue.js)
- Fully responsive design
- Works with Symfony 7.0+ and 8.0+
- PHP 8.1+ compatible
- No database required
- Production-safe (disabled by default, only active in dev mode)

---

Installation
------------

[](#installation)

Install via Composer:

```
composer require faizankamal/symfony-route-inspector --dev
```

If you're using Symfony Flex, the bundle will be automatically registered. Otherwise, register it manually in `config/bundles.php`:

```
