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

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

qlantech/enum
=============

hyperf enum

v0.0.2(4y ago)0101MITPHPPHP &gt;=7.3

Since Jun 7Pushed 4y ago2 watchersCompare

[ Source](https://github.com/qlantech/enum)[ Packagist](https://packagist.org/packages/qlantech/enum)[ RSS](/packages/qlantech-enum/feed)WikiDiscussions main Synced 1w ago

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

Qlantech Enum
=============

[](#qlantech-enum)

About
-----

[](#about)

[qlantech/enum](https://github.com/qlantech/enum) 组件实现了 [Hyperf](https://github.com/hyperf/hyperf) 框架内的 PHP 枚举类型。

Installation
------------

[](#installation)

```
composer require qlantech/enum

```

Usage
-----

[](#usage)

Usage:

```
use Qltech\AbstractEnum;
use Qltech\Enum;

/**
 * @Enum
 */
class OrderStatus extends AbstractEnum
{
    /**
     * @Name("未知")
     */
    const UNKNOWN = 0;

    /**
     * @Name("申请中")
     */
    const APPLY = 1;

    /**
     * @Name("已到账")
     */
    const ARRIVED = 2;

    /**
     * @Name("已兑换")
     */
    const EXCHANGED = 3;
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

2

Last Release

1756d ago

### Community

Maintainers

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

---

Top Contributors

[![trrtly](https://avatars.githubusercontent.com/u/16716327?v=4)](https://github.com/trrtly "trrtly (2 commits)")

---

Tags

phphyperf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[hyperf/watcher

Hot reload watcher for Hyperf

17846.7k27](/packages/hyperf-watcher)

PHPackages © 2026

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