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

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

purple/anbu
===========

laravel-debug profiler

1.0.1-stable(10y ago)011MITPHPPHP &gt;=5.5.9

Since Sep 12Pushed 10y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

Anbu Profiler for Laravel 5
===========================

[](#anbu-profiler-for-laravel-5)

Thanks [daylerees](https://github.com/daylerees)

[![Anbu Profiler](https://raw.githubusercontent.com/jhasheng/anbu/master/snapshot.jpg)](https://raw.githubusercontent.com/jhasheng/anbu/master/snapshot.jpg)

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

[](#installation)

执行以下命令进行安装

```
composer require purple/anbu

```

添加以下内容到文件 `app/config/app.php`:

```
Purple\Anbu\ProfilerServiceProvider::class,

```

执行以下命令将会自动复制资源文件到指定目录，中括号中的参数将会强制覆盖已经存在的文件

```
php artisan vendor:publish --provider="Purple\Anbu\ProfilerServiceProvider" [--force]

```

安装结束，尽情使用吧

Timers
------

[](#timers)

如需使用此功能，需要启用Facades，添加以下内容到 `app/config/app.php`

```
'Anbu' => 'Purple\Anbu\Facades\Purple',

```

使用方法如下

```
Anbu::timers()->start('test');
sleep(30); // Do something interesting here.
Anbu::timers()->end('test', 'Completed doing something.');

```

Debug
-----

[](#debug)

如需使用此功能，使用 `ad()` 代替 `dd()`

```
ad('foo');

```

Problems?
---------

[](#problems)

如何清除数据，清除数据采用 `truncate` ，将会重置自增主键

```
php artisan purple:clear

```

Configuration
-------------

[](#configuration)

```
return [
    /**
     * 启用分析工具
     */
    'disable' => env('PURPLE_ENABLE', false),

    /**
     * 页面是否显示按钮
     */
    'display' => true,

    /**
     * 数据收集驱动类型
     */
    'repository' => 'Purple\Anbu\Repositories\DatabaseRepository',

    /**
     * 分析工具列表
     */
    'modules' => [
        'Purple\Anbu\Modules\Dashboard\Dashboard',
        'Purple\Anbu\Modules\RoutesBrowser\RoutesBrowser',
        'Purple\Anbu\Modules\Request\Request',
        'Purple\Anbu\Modules\QueryLogger\QueryLogger',
        'Purple\Anbu\Modules\Logger\Logger',
        'Purple\Anbu\Modules\Events\Events',
        'Purple\Anbu\Modules\Debug\Debug',
        'Purple\Anbu\Modules\Timers\Timers',
        'Purple\Anbu\Modules\Info\Info',
        'Purple\Anbu\Modules\History\History',
//        'Anbu\Modules\Container\Container',
    ],

];

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 78.3% 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 ~121 days

Recently: every ~151 days

Total

6

Last Release

3655d ago

### Community

Maintainers

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

---

Top Contributors

[![daylerees](https://avatars.githubusercontent.com/u/207870?v=4)](https://github.com/daylerees "daylerees (36 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![maximebeaudoin](https://avatars.githubusercontent.com/u/3246184?v=4)](https://github.com/maximebeaudoin "maximebeaudoin (2 commits)")[![jamescjohns](https://avatars.githubusercontent.com/u/3900828?v=4)](https://github.com/jamescjohns "jamescjohns (1 commits)")[![MarnuLombard](https://avatars.githubusercontent.com/u/2191786?v=4)](https://github.com/MarnuLombard "MarnuLombard (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![simongiraud](https://avatars.githubusercontent.com/u/50234047?v=4)](https://github.com/simongiraud "simongiraud (1 commits)")[![gabarba](https://avatars.githubusercontent.com/u/3189038?v=4)](https://github.com/gabarba "gabarba (1 commits)")[![garygreen](https://avatars.githubusercontent.com/u/1702638?v=4)](https://github.com/garygreen "garygreen (1 commits)")

### Embed Badge

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

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

###  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)
