PHPackages                             lengbin/error-code - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lengbin/error-code

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lengbin/error-code
==================

php error code

2.0.x-dev(4y ago)02.3k2MITPHPPHP &gt;=7.2.0

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ice-leng/error-code)[ Packagist](https://packagist.org/packages/lengbin/error-code)[ RSS](/packages/lengbin-error-code/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (2)

error-code
==========

[](#error-code)

php 错误码 对象化

依赖

```
marc-mabe/php-enum
roave/better-reflection
```

文档
--

[](#文档)

基础用法[marc-mabe/php-enum](https://github.com/marc-mabe/php-enum)

增加功能
----

[](#增加功能)

- 基于注解 获得备注信息
- 合并多个错误码文件为一个文件脚本

案例 一
----

[](#案例-一)

```
