fr3on/laravel-ghost 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fr3on/laravel-ghost

最新稳定版本:0.0.1

Composer 安装命令:

composer require fr3on/laravel-ghost

包简介

Identify and eliminate dead routes, orphaned event listeners, and zombie jobs in your Laravel application.

README 文档

README

GitHub license PHP Version Laravel Version Tests

Finds dead routes, orphaned event listeners, and zombie jobs — registered code that your application never actually uses.

Installation

composer require fr3on/laravel-ghost

Usage

Scan your application for unused code:

php artisan ghost:scan

Modes

  1. Log mode (default): Reads existing access logs (Nginx/Apache/Laravel).
  2. Telescope mode: Queries your Telescope entries for hit data.
  3. Counter mode: Lightweight DB hits table (opt-in).

To enable Counter mode, run:

php artisan ghost:install
php artisan migrate

Expected Result

The scan command produces a technical report of unused components:

+--------+------------------------+---------------------------------+
| Method | URI                    | Action                          |
+--------+------------------------+---------------------------------+
| GET    | /api/legacy/export     | LegacyController@export         |
| POST   | /internal/debug-reset  | DebugController@reset           |
+--------+------------------------+---------------------------------+

Found 2 dead routes, 0 orphaned listeners, 0 zombie jobs.

Configuration

Publish the config file:

php artisan vendor:publish --tag=ghost-config

Configure scan_paths, log_path, and exclude_patterns in config/ghost.php.

统计信息

  • 总下载量: 230
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固