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

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

kalibora/labeled-enum
=====================

Enum with label that extends myclabs/php-enum

v0.2.0(6y ago)03.1kMITPHPPHP &gt;=7.1.0CI failing

Since Nov 28Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (3)Used By (0)

LabeledEnum
===========

[](#labeledenum)

Enum with label that extends myclabs/php-enum.

Usage
-----

[](#usage)

```
use Kalibora\LabeledEnum\LabeledEnum;

class Fruit extends LabeledEnum
{
    private const APPLE = 1;
    private const ORANGE = 2;
    private const BANANA = 3;

    public static function getLabels() : array
    {
        return [
            self::APPLE => 'Apple',
            self::ORANGE => 'Orange',
            self::BANANA => 'Banana',
        ];
    }
}
```

```
$orange = Fruit::ORANGE();

echo $orange->getValue(), PHP_EOL; // 2
echo $orange->getLabal(), PHP_EOL; // Orange
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

2385d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/434940?v=4)[Toshiyuki Fujita](/maintainers/kalibora)[@kalibora](https://github.com/kalibora)

---

Top Contributors

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

---

Tags

enum

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[oat-sa/tao-core

TAO core extension

64147.9k151](/packages/oat-sa-tao-core)[commerceguys/tax

Tax library with a flexible data model, predefined tax rates, powerful resolving logic.

286786.9k](/packages/commerceguys-tax)[api-platform/doctrine-common

Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm

294.9M55](/packages/api-platform-doctrine-common)[open-feature/sdk

PHP implementation of the OpenFeature SDK

42891.0k25](/packages/open-feature-sdk)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.5M28](/packages/timeweb-phpstan-enum)[sylius/promotion

Flexible promotion management for PHP applications.

28515.1k15](/packages/sylius-promotion)

PHPackages © 2026

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