PHPackages                             snowair/think-whoops - 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. snowair/think-whoops

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

snowair/think-whoops
====================

ThinkPHP3.2 集成Whoops

62122PHP

Since Sep 15Pushed 10y ago2 watchersCompare

[ Source](https://github.com/snowair/think-whoops)[ Packagist](https://packagist.org/packages/snowair/think-whoops)[ RSS](/packages/snowair-think-whoops/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

介绍
==

[](#介绍)

ThinkPHP 集成 [Whoops](https://github.com/filp/whoops)

安装使用
----

[](#安装使用)

[composer中文文档](http://www.kancloud.cn/thinkphp/composer)

```
composer require snowair/think-whoops:dev-master

```

- 在 Common/Conf/tags.php 增加一个行为,如果之前已经添加过,就不用再添加了: ```
    return array(
         'app_init'=>array(
            'Snowair\Think\Behavior\HookAgent'
         ),
    )

    ```

就是这么简单, whoops立即生效了!

- 如果需要强制启用whoops(为了安全不建议这样做), 只需在 config.php 添加一项配置:`"WHOOPS"=>true;`
- 如果需要强制禁用, 只需在 config.php 添加一项配置:`"WHOOPS"=>false;`
- (默认)如果需要根据APP\_DEBUG常量启用或禁用, 只需要删除"WHOOPS"配置,或将其值设为"auto", 当 `APP_DEBUG=false;` 时就会自动禁用 whoops 以保证安全.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0eb057945348a8d33b62872e67cbf4dd9d589db4330815c9b246ab5a51113720?d=identicon)[snowair](/maintainers/snowair)

### Embed Badge

![Health badge](/badges/snowair-think-whoops/health.svg)

```
[![Health](https://phpackages.com/badges/snowair-think-whoops/health.svg)](https://phpackages.com/packages/snowair-think-whoops)
```

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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