Ross ROSS = Recommend OSS · open-source software intelligence for agents

myclabs/php-enum

Some data may be outdated — see provenance labels.

The enum PHP is missing, inspired from SplEnum observed · 2026-09-22

github.com/myclabs/php-enum · PHP · MIT (permissive) observed · 2026-09-22

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5018
  • days_rel: 644
  • days_push: 606
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

2724 stars · 125 forks observed · 2026-09-22

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small PHP library providing an Enum base class, inspired by SplEnum, for PHP versions lacking native enums. It lets developers define enumerable constants as typed objects usable as parameter/return types with helper methods like from(), values(), and equals().

Use cases

  • use enums as parameter and return types in PHP
  • get a list of all possible enum values
  • compare enum instances for equality
  • create enum instances from dynamic values
  • add methods to enum types

When to choose

  • you are on PHP < 8.1 and need enum-like typed constants
  • you want SplEnum behavior without installing a C extension
  • you need enums with methods and type-hintable instances

When to avoid

  • you are on PHP 8.1+ where native enums are built in
  • you only need simple class constants
  • you need a heavily developed actively evolving library

Facets

library · maturity maintenance

type-system serialization programming-languages developer-tools php enum spl-enum value-objects composer-package

1 source

Member repositories

RepositoryRoleHealth v2
myclabs/php-enummain23

For agents

markdown · JSON · MCP: product_card(name="myclabs/php-enum")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem