{"adoption": {"forks": 157, "observed_at": "2026-08-28T04:06:07.186039+00:00", "stars": 2030}, "canonical_url": "https://ross.abutalabs.com/products/laravel-enum", "card": {"archived": false, "artifact_type": "library", "description": "Simple, extensible and powerful enumeration implementation for Laravel.", "domain": ["web-development", "developer-tools", "programming-languages"], "enriched": true, "function": ["developer-tools", "cli", "form-handling"], "health_score": 65, "homepage": "https://sampo.co.uk/blog/using-enums-in-laravel", "language": "PHP", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["BenSampo/laravel-enum"], "name": "BenSampo/laravel-enum", "platform": ["php"], "pushed_at": "2026-03-29T17:01:48+00:00", "repo": "BenSampo/laravel-enum", "stars": 2030, "tags": ["enum", "laravel-package", "bitwise-enum", "attribute-casting", "php-enums", "deprecated-in-favor-of-native-enums", "laravel"], "topics": ["enum", "laravel-enum", "enumeration", "laravel", "enum-instantiation", "bitwise-enum", "enum-library", "laravel-package", "php"], "urls": [], "use_cases": ["add enums to a Laravel app on PHP below 8.1", "validate request input against enum keys or values", "cast Eloquent model attributes to enum instances", "create flagged bitwise enum flags", "generate enum classes with an artisan command", "attach localized descriptions to enum values"], "what_it_is": "A Laravel package providing a simple, extensible enumeration implementation with class constants, instantiation, flagged/bitwise enums, attribute casting, validation rules, and artisan generators. The README now recommends against using it for new projects since PHP 8.1 supports enums natively.", "when_to_avoid": ["starting a new project on PHP 8.1 or later — use native PHP enums", "you need a long-term maintained solution — the library is no longer recommended"], "when_to_choose": ["you're on a legacy Laravel/PHP codebase predating PHP 8.1 native enums", "you need bitwise/flagged enums with helper methods", "you want enum-aware validation and attribute casting in Laravel"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/laravel-enum", "repo": "BenSampo/laravel-enum", "role": "main", "score": 66}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "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:06:07.186039+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:07.186039+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:59:33.731862+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "667fe1ec58aeed852a1c7337451cd14b28cba4f1ce3cb4bd34747fd82761b585", "fetched_at": "2026-08-28T04:06:07.186039+00:00", "kind": "readme", "missing": false, "url": "https://github.com/BenSampo/laravel-enum"}, {"content_hash": "424fb9246bc1955fca57e589add20edb3f6f775f6e424462a693b6f1e34efd1a", "fetched_at": "2026-08-29T10:39:21.401511+00:00", "kind": "homepage", "missing": false, "url": "https://sampo.co.uk/blog/using-enums-in-laravel"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 74, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3282, "days_push": 157, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 66, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}