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 1mo 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 32% 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

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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