ostrolucky/traceroute
最新稳定版本:0.2
Composer 安装命令:
composer require ostrolucky/traceroute
包简介
Detect unused routes
README 文档
README
traceroute monitors usage of your application's routes, then shows you unused routes. You might want to do this in order to be able to get rid of unused controllers.
It's inspired by projects such as Symfony's symfony-route-usage, Laravel's route-usage and Rails's traceroute.
It differs from them by being less opinionated and having no dependencies, thanks to SOLID and decoupled design. Framework integrations come as optional bridges, currently shipping with bridge compatible with Symfony 5/6/7.
Install
composer require ostrolucky/traceroute
Symfony framework installation
Register bridge/bundle in your config/bundles.php:
return [ Ostrolucky\Traceroute\Bridge\Symfony\TraceRouteBundle::class => ['prod' => true], ];
Usage
Most of the time library happily monitors route usage in background automatically, recording this information in database table.
You are free to query this table yourself, however what you cannot do is cross-check this table which contains used routes with all routes defined in your application. That's what following command is for:
bin/console ostrolucky:unused-routes
It will simply output unused route names, meaning routes that are defined in your application, but were never accessed.
Licensing
GPLv3 license. Please see License File for more information.
统计信息
- 总下载量: 3.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-26