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

62102PHP

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 today

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

[filp/whoops

php error handling for cool kids

13.3k394.4M1.3k](/packages/filp-whoops)[symfony/stopwatch

Provides a way to profile code

2.8k379.8M784](/packages/symfony-stopwatch)[composer/xdebug-handler

Restarts a process without Xdebug.

2.6k390.6M74](/packages/composer-xdebug-handler)[beyondcode/laravel-dump-server

Symfony Var-Dump Server for Laravel

1.6k42.1M154](/packages/beyondcode-laravel-dump-server)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k253.2k13](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510143.5M56](/packages/spatie-ignition)

PHPackages © 2026

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