PHPackages                             jhasheng/purple - 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. jhasheng/purple

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

jhasheng/purple
===============

laravel 5 profiler

v1.0.6(9y ago)526MITPHPPHP ~5.5|~7.0

Since May 23Pushed 9y agoCompare

[ Source](https://github.com/jhasheng/purple)[ Packagist](https://packagist.org/packages/jhasheng/purple)[ Docs](https://github.com/jhasheng/purple)[ RSS](/packages/jhasheng-purple/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

基于 laravel 5 的性能分析器
===================

[](#基于-laravel-5-的性能分析器)

[![image](https://github.com/jhasheng/purple/raw/master/screenshots/purple.jpg)](https://github.com/jhasheng/purple/raw/master/screenshots/purple.jpg)

由来
--

[](#由来)

- 无类似 `Symfony` 中 `debug` 工具
- `laravel-debugbar` 界面过于丑陋，处女座的我表示不能忍
- [daylerees/anbu](https://github.com/daylerees/anbu) ，但并不支持 `laravel 5` , mark 一下
- [itsgoingd/clockwork](https://github.com/itsgoingd/clockwork) , 支持 `laravel 5` 但是没有界面，需要结合 Chrome 插件来使用
- 还是不合我意，于是有了将两者合一的念头

安装
--

[](#安装)

- 安装依赖包

```
composer require jhasheng/purple
```

- 添加以下 **ServiceProvider** 到 **config/app.php**

```
Purple\ServiceProvider\PurpleServiceProvider::class,
```

- 添加中间件到 **Kernel.php**

```
\Purple\Middleware\Purple::class,
```

- 发布资源文件 参数 **force** 可选，意为强制覆盖已经存在的文件，第二次运行时使用，中括号内为可选参数，**tag** 参数为发布指定类型文件（配置，静态资源，数据库文件）

```
php artisan vendor:publish --provider='Purple\ServiceProvider\PurpleServiceProvider' [--force] [--tag="purple.config|purple.assets|purple.sql"]
```

- 安装数据库

```
composer dump-autoload
php artisan migration
```

特性
--

[](#特性)

- 收集项

    - Request
    - Log
    - Event
    - Page Debug
    - DB Query
    - Route
    - PHP Info
- 存储方式

    - MySQL
    - Redis
    - Mongo
    - Other

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Total

7

Last Release

3591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c7d750e0821749d64fa6334cb88c14476cce2f9bca43b2c186b855e441ec641?d=identicon)[jhasheng](/maintainers/jhasheng)

---

Top Contributors

[![jhasheng](https://avatars.githubusercontent.com/u/3609682?v=4)](https://github.com/jhasheng "jhasheng (18 commits)")

---

Tags

jhashengpurple

### Embed Badge

![Health badge](/badges/jhasheng-purple/health.svg)

```
[![Health](https://phpackages.com/badges/jhasheng-purple/health.svg)](https://phpackages.com/packages/jhasheng-purple)
```

###  Alternatives

[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[spatie/laravel-artisan-dd

Run dd from your commandline

16387.7k1](/packages/spatie-laravel-artisan-dd)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[daylerees/anbu

The Anbu profiler for Laravel 4.

3054.9k](/packages/daylerees-anbu)[thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.

2214.4k](/packages/thehocinesaad-laravel-error-ai)

PHPackages © 2026

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