All Projects → deprecated-packages → symfony-route-usage

deprecated-packages / symfony-route-usage

Licence: MIT license
[READ-ONLY] Detect used and unused Symfony routes

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to symfony-route-usage

url-trailing-slash
Allows enforcing URL routes with or without trailing slash
Stars: ✭ 35 (-14.63%)
Mutual labels:  route
optimized-route
Website that uses the Google Maps API to create an optimized route between waypoints. (My first website, from 2016).
Stars: ✭ 17 (-58.54%)
Mutual labels:  route
route observer mixin
RouteObserveMixin provides easy access to didPush/didPop/didPushNext/didPopNext.
Stars: ✭ 27 (-34.15%)
Mutual labels:  route
uon
🐨 A tiny 200b route change observer.
Stars: ✭ 83 (+102.44%)
Mutual labels:  route
STCRouter
基于标准URL的iOS路由系统,可实现业务模块组件化,控制器之间零耦合,可实现黑白名单控制,可进行native降级到hybrid。
Stars: ✭ 19 (-53.66%)
Mutual labels:  route
lifecycle
Lifecycle support for Flutter widgets.
Stars: ✭ 30 (-26.83%)
Mutual labels:  route
path-to-regexp-php
PHP port of https://github.com/pillarjs/path-to-regexp
Stars: ✭ 21 (-48.78%)
Mutual labels:  route
Framework
ThinkPHP Framework
Stars: ✭ 2,399 (+5751.22%)
Mutual labels:  route
route
A fast router for PHP
Stars: ✭ 27 (-34.15%)
Mutual labels:  route
koii
A simple middleware for displaying routes in an express application
Stars: ✭ 73 (+78.05%)
Mutual labels:  route
FGRoute
Get your device ip address, router ip or wifi ssid
Stars: ✭ 128 (+212.2%)
Mutual labels:  route
laravel-route-model-autobinding
THIS PACKAGE HAS BEEN DEPRECATED — Automatically bind Eloquent models as route segment variables.
Stars: ✭ 14 (-65.85%)
Mutual labels:  route
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+246.34%)
Mutual labels:  route
next-test-api-route-handler
🚀✨ Confidently unit test your Next.js API routes/handlers in an isolated Next.js-like environment
Stars: ✭ 150 (+265.85%)
Mutual labels:  route
Think
ThinkPHP Framework ——十年匠心的高性能PHP框架
Stars: ✭ 7,681 (+18634.15%)
Mutual labels:  route
laravel-middleware-cache-response
Laravel中间件-Response缓存
Stars: ✭ 61 (+48.78%)
Mutual labels:  route
airoute
*1、Support routing management without context *2、Support 'non-intrusive parameter passing' routing management *3、Airoute that makes you fall in love with routing management
Stars: ✭ 27 (-34.15%)
Mutual labels:  route
vue-error-page
[NO LONGER MAINTAINED] Provides a wrapper for router-view that allows you to show error pages without changing the URL.
Stars: ✭ 52 (+26.83%)
Mutual labels:  route
Router
🍭灵活的组件化路由框架.
Stars: ✭ 1,502 (+3563.41%)
Mutual labels:  route
RouteOne
Route for PHP
Stars: ✭ 21 (-48.78%)
Mutual labels:  route

Detect Used and Unused Symfony Routes

Downloads total

Read about this package: How to Find Dead Symfony Routes


Inspired by 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

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

Show used routes:

bin/console show-route-usage

Show dead routes:

bin/console show-dead-routes

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

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].