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 today

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 52% 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

3639d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3609682?v=4)[Tomato ](/maintainers/jhasheng)[@jhasheng](https://github.com/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

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235344.1k](/packages/laracraft-tech-laravel-xhprof)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[binarybuilds/laritor-client

The official Laritor client for Laravel. Stream traces, exceptions, queries, jobs, and more to your Laritor dashboard in under 30 seconds.

1738.4k](/packages/binarybuilds-laritor-client)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22157.3k](/packages/bavix-laravel-xhprof)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3310.1k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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