PHPackages                             yangweijie/think-exception - 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. [Framework](/categories/framework)
4. /
5. yangweijie/think-exception

ActiveLibrary[Framework](/categories/framework)

yangweijie/think-exception
==========================

一个 ThinkPHP 中 可以打开错误异常文件的异常处理

v1.0.7(2y ago)324MITSmartyPHP &gt;=7.4

Since Apr 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yangweijie/think-exception)[ Packagist](https://packagist.org/packages/yangweijie/think-exception)[ RSS](/packages/yangweijie-think-exception/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

think-exception
===============

[](#think-exception)

exception for ThinkPHP

安装
--

[](#安装)

`composer require yangweijie/think-exception`

.env 里 app\_debug=true

将 app.show\_error\_msg 设为 true

```
// 显示错误信息
'show_error_msg'   => true,

```

配置设置 exception.php里 editor
--------------------------

[](#配置设置-exceptionphp里-editor)

```
 // 当前编辑器
'editor' => 'vscode',

```

编辑器协议绑定
-------

[](#编辑器协议绑定)

### vscode

[](#vscode)

最容易的，只需要安装时 选择下图的“将code注册为受支持的文件类型的编辑器”就行

[![Vscode 安装](./art/vscode.png)](./art/vscode.png)

### sublime

[](#sublime)

需要安装 [subl-protocol](https://github.com/thecotne/subl-protocol) 插件

### phpstorm

[](#phpstorm)

参考 [laravel-debugbar 中正确使用 ide phpstorm打开项目文件的方式 ](https://learnku.com/articles/77072) 文章放置js 和 添加注册表即可

### 其他

[](#其他)

欢迎大家测试，反馈

另外如果是tp8 项目，可以直接使用 [think-ignition](https://github.com/yangweijie/think-ignition) 本人移植 laravel 的ignition 扩展来实现异常显示和跳转

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~2 days

Total

8

Last Release

730d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0b5f090a9bb92727e9c2e8281d05c2da5f2f9bf66cf1811714a9ffc0e383325?d=identicon)[yangweijie](/maintainers/yangweijie)

---

Top Contributors

[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (9 commits)")

---

Tags

frameworkexceptionthinkphp

### Embed Badge

![Health badge](/badges/yangweijie-think-exception/health.svg)

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

###  Alternatives

[apiadmin/apiadmin

Just For Api

5024.2k](/packages/apiadmin-apiadmin)

PHPackages © 2026

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