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

ActiveLibrary

xiaolin/notes-enum
==================

notes-enum

0.0.6(8y ago)1121MITPHPPHP &gt;=7.0

Since Mar 24Pushed 8y agoCompare

[ Source](https://github.com/missxiaolin/notes-enum)[ Packagist](https://packagist.org/packages/xiaolin/notes-enum)[ RSS](/packages/xiaolin-notes-enum/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

notes-enum
==========

[](#notes-enum)

[![Build Status](https://camo.githubusercontent.com/11723a97ea8ecbb6827b3f55f2acb37f2965a99049121528c5ddb2efbb70c245/68747470733a2f2f7472617669732d63692e6f72672f666f726b67726f75702f6e6f7465732d656e756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/forkgroup/notes-enum)

安装
--

[](#安装)

```
composer require xiaolin/notes-enum

```

使用
--

[](#使用)

### 定义枚举类

[](#定义枚举类)

```
use Lin\Enum\Enum;
class ErrorCode extends Enum
{
    /**
     * @Message('非法的TOKEN')
     */
    public static $ENUM_INVALID_TOKEN = 700;
}

```

```
$code = ErrorCode::$ENUM_INVALID_TOKEN;
$message = ErrorCode::getMessage($code);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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

6

Last Release

2972d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.6

0.0.6PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/05b5e817e8addc30803144d902d3ed6028bc474bf6cc82d872180cc5903b373b?d=identicon)[missxiaolin](/maintainers/missxiaolin)

---

Top Contributors

[![missxiaolin](https://avatars.githubusercontent.com/u/26253292?v=4)](https://github.com/missxiaolin "missxiaolin (16 commits)")[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (5 commits)")

---

Tags

lin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[limingxinleo/x-phalcon-enum

a phalcon enum component

104.4k1](/packages/limingxinleo-x-phalcon-enum)

PHPackages © 2026

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