{"adoption": {"forks": 127, "observed_at": "2026-08-28T04:07:15.591639+00:00", "stars": 2722}, "canonical_url": "https://ross.abutalabs.com/products/php-enum", "card": {"archived": false, "artifact_type": "library", "description": "The enum PHP is missing, inspired from SplEnum", "domain": ["programming-languages", "developer-tools"], "enriched": true, "function": ["type-system", "serialization"], "health_score": 36, "homepage": null, "language": "PHP", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["myclabs/php-enum"], "name": "myclabs/php-enum", "platform": ["php"], "pushed_at": "2025-02-21T08:40:22+00:00", "repo": "myclabs/php-enum", "stars": 2722, "tags": ["enum", "spl-enum", "value-objects", "composer-package"], "topics": ["enum", "php", "php-enum"], "urls": [], "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"], "what_it_is": "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().", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/php-enum", "repo": "myclabs/php-enum", "role": "main", "score": 26}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:15.591639+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:15:11.779905+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "6c8a77f023b666ed5dadc93ac2988caf75b53c0e6b0328462419abf735136258", "fetched_at": "2026-08-28T04:07:15.591639+00:00", "kind": "readme", "missing": false, "url": "https://github.com/myclabs/php-enum"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 7, "longevity": 100, "rhythm": 8}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4970, "days_push": 558, "days_rel": 596, "gap_med": null, "n_releases_24m": 1}, "score": 26, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}