PHPackages                             coderhy/enum - 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. coderhy/enum

ActiveLibrary

coderhy/enum
============

A simple library to enum v1.3.2!

v1.3.2(5y ago)010MITPHPPHP &gt;=7.0

Since Nov 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/coderhy/enum)[ Packagist](https://packagist.org/packages/coderhy/enum)[ Docs](https://github.com/coderhy)[ RSS](/packages/coderhy-enum/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Enum
====

[](#enum)

### 开发者

[](#开发者)

- 何渊([@coderhy](https://github.com/coderhy))

### 接入组件

[](#接入组件)

composer require coderhy/enum

### 使用方法：

[](#使用方法)

- 1、use CodeMessage\\UserCode;//use引入 或使用时补全命名空间 CodeMessage\\UserCode::ERROR\_PASSWORD
- 2、使用code码 CodeMessage\\UserCode::ERROR\_PASSWORD
- 3、获取错误信息 UserCode::valueOf(UserCode::ERROR\_PASSWORD)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

2005d ago

PHP version history (2 changes)v1.1PHP &gt;=5.3.0

v1.2PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3722873?v=4)[stream](/maintainers/coderhe)[@coderhe](https://github.com/coderhe)

---

Top Contributors

[![erouss](https://avatars.githubusercontent.com/u/18049178?v=4)](https://github.com/erouss "erouss (28 commits)")

---

Tags

phpenum

### Embed Badge

![Health badge](/badges/coderhy-enum/health.svg)

```
[![Health](https://phpackages.com/badges/coderhy-enum/health.svg)](https://phpackages.com/packages/coderhy-enum)
```

###  Alternatives

[kongulov/interact-with-enum

Trait for convenient use of ENUM in PHP

3052.3k2](/packages/kongulov-interact-with-enum)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[ducks-project/spl-types

Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string

1032.4k](/packages/ducks-project-spl-types)

PHPackages © 2026

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