PHPackages                             fr3on/laravel-ghost - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fr3on/laravel-ghost

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fr3on/laravel-ghost
===================

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

0.0.1(3mo ago)0230MITPHPPHP ^8.2CI passing

Since Apr 12Pushed 3mo agoCompare

[ Source](https://github.com/fr3on/laravel-ghost)[ Packagist](https://packagist.org/packages/fr3on/laravel-ghost)[ RSS](/packages/fr3on-laravel-ghost/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Laravel Ghost
=============

[](#laravel-ghost)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![PHP Version](https://camo.githubusercontent.com/82aff4c49bf07db75f6ce5a63ab76a3e48a07ce938f15c5560101e49379e9969/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253230382e322532422d3737376262342e737667)](https://camo.githubusercontent.com/82aff4c49bf07db75f6ce5a63ab76a3e48a07ce938f15c5560101e49379e9969/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253230382e322532422d3737376262342e737667)[![Laravel Version](https://camo.githubusercontent.com/11208845eb5b5e360e4d372dda2a5354da43559c97c3aba769326f3c71726d72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302d2d31332d6666326432302e737667)](https://camo.githubusercontent.com/11208845eb5b5e360e4d372dda2a5354da43559c97c3aba769326f3c71726d72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302d2d31332d6666326432302e737667)[![Tests](https://camo.githubusercontent.com/dc04e4a10589933080325de49f7af7b732b53559934272527ee7abd22bb7a6d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d706573742d3030623162392e737667)](https://camo.githubusercontent.com/dc04e4a10589933080325de49f7af7b732b53559934272527ee7abd22bb7a6d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d706573742d3030623162392e737667)

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

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

[](#installation)

```
composer require fr3on/laravel-ghost
```

Usage
-----

[](#usage)

Scan your application for unused code:

```
php artisan ghost:scan
```

### Modes

[](#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
---------------

[](#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
-------------

[](#configuration)

Publish the config file:

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

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

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance80

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

103d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/205356416?v=4)[fr3onv](/maintainers/fr3onv)[@fr3onv](https://github.com/fr3onv)

---

Top Contributors

[![fr3on](https://avatars.githubusercontent.com/u/26393383?v=4)](https://github.com/fr3on "fr3on (2 commits)")[![ahmardi](https://avatars.githubusercontent.com/u/141551822?v=4)](https://github.com/ahmardi "ahmardi (1 commits)")

---

Tags

clean-codedead-codeevent-listenerslaravelphproute-cleanupstatic-analysiszombie-jobslaravelstatic analysisdead codeclean codeevent listenersroute-cleanupzombie-jobs

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fr3on-laravel-ghost/health.svg)

```
[![Health](https://phpackages.com/badges/fr3on-laravel-ghost/health.svg)](https://phpackages.com/packages/fr3on-laravel-ghost)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k14](/packages/laravel-surveyor)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

985.4k](/packages/zidbih-laravel-deadlock)[boundwize/structarmed

Configurable PHP architecture guards — define your layers and rules, then keep them enforced

45629.2k26](/packages/boundwize-structarmed)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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