PHPackages                             50bhan/symfony-route-usage - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. 50bhan/symfony-route-usage

ArchivedSymfony-bundle[Debugging &amp; Profiling](/categories/debugging)

50bhan/symfony-route-usage
==========================

Detect used and unused Symfony routes

9.1.9(5y ago)4112MITPHPPHP &gt;=7.3

Since Apr 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/50bhan/symfony-route-usage)[ Packagist](https://packagist.org/packages/50bhan/symfony-route-usage)[ RSS](/packages/50bhan-symfony-route-usage/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (16)Versions (141)Used By (0)

Detect Used and Unused Symfony Routes
=====================================

[](#detect-used-and-unused-symfony-routes)

[![Downloads total](https://camo.githubusercontent.com/489c2b5955be695b806964a187106b85b1e016b28e4e4647034f4b85b9127e64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f73796d666f6e792d726f7574652d75736167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/symfony-route-usage/stats)

**Read about this package: [How to Find Dead Symfony Routes](https://www.tomasvotruba.com/blog/2020/04/06/how-to-find-dead-symfony-routes/)**

*Inspired by [Route Usage](https://github.com/julienbourdeau/route-usage/) for Laravel:*

"This package keeps track of all requests to know what controller method, and when it was called. The goal is not to build some sort of analytics but to find out if there are unused endpoints or controller method.

After a few years, any projects have dead code and unused endpoint. Typically, you removed a link on your frontend, nothing ever links to that old /special-page. You want to remove it, but you're not sure. Have look at the route\_usage table and figure out when this page was accessed for the last time. Last week? Better keep it for now. 3 years ago? REMOVE THE CODE!"

Install
-------

[](#install)

```
composer require symplify/symfony-route-usage
```

Register bundle to your `config/bundles.php` (in case Flex misses it):

```
return [
    Symplify\SymfonyRouteUsage\SymfonyRouteUsageBundle::class => [
        'all' => true,
    ],
];
```

Usage
-----

[](#usage)

Show used routes:

```
bin/console show-route-usage
```

 [![](/docs/used_routes.png)](/docs/used_routes.png)

Show dead routes:

```
bin/console show-dead-routes
```

 [![](/docs/dead_routes.png)](/docs/dead_routes.png)

Configuration
-------------

[](#configuration)

By default, `_*` and `error_controller` is excluded. If you want to exclude more routes, use regex parameter:

```
# config/services.yaml
parameters:
    route_usage_exclude_route_regex: '#legacy#'
```

Report Issues
-------------

[](#report-issues)

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)

Contribute
----------

[](#contribute)

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

140

Last Release

1911d ago

Major Versions

0.4.2 → 9.0.0-BETA32020-11-24

PHP version history (4 changes)v0.1.1PHP ^7.2

v0.3.32PHP ^7.2|^8.0

0.3.34PHP &gt;=7.2

9.0.0-rc1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a2e729dd1324600e0ddecc2013e40f16d1488f1219618e93b580bb5f1f88944?d=identicon)[50bhan](/maintainers/50bhan)

---

Top Contributors

[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (6 commits)")[![50bhan](https://avatars.githubusercontent.com/u/36772278?v=4)](https://github.com/50bhan "50bhan (1 commits)")[![leoloso](https://avatars.githubusercontent.com/u/1981996?v=4)](https://github.com/leoloso "leoloso (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/50bhan-symfony-route-usage/health.svg)

```
[![Health](https://phpackages.com/badges/50bhan-symfony-route-usage/health.svg)](https://phpackages.com/packages/50bhan-symfony-route-usage)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[steevanb/php-backtrace

Nice debug\_backtrace() dump, with call and code preview

22142.6k5](/packages/steevanb-php-backtrace)[ikkez/f3-falsum

Pretty error handling for Fat-Free Framework

21145.8k3](/packages/ikkez-f3-falsum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
