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

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

tleckie/enum
============

PHP Enum. One advantage over using class constants is to be able to use an enum as a parameter type

1.0.2(5y ago)0471MITPHP ^8

Since Apr 28Compare

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

READMEChangelogDependencies (3)Versions (4)Used By (1)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/teodoroleckie/enum).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

3

Last Release

1843d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10697878?v=4)[Teodoro Leckie Westberg](/maintainers/teodoroleckie)[@teodoroleckie](https://github.com/teodoroleckie)

---

Tags

phpenumenumeratorphp-enumphp-8tleckie

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[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)[zlikavac32/php-enum

Better PHP enum support

225.6k5](/packages/zlikavac32-php-enum)

PHPackages © 2026

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