alibayat/laravel-categorizable
Adopt (or pilot) when:
composer.json constraints against Laravel 9/10 and PHP 8.0/8.1 before committing.Look elsewhere when:
kalnoy/nestedset for trees, spatie/laravel-tags for flat tagging, or a purpose-built model.To executives: This is a small, MIT-licensed library that gives us a standardized category system across the whole product instead of rebuilding it per feature. The cost is near zero and the licensing is clean. The caveat is maturity: it is a low-activity open-source project with a single maintainer and no releases since January 2023. So the ask is not "install and forget" — it is "adopt and own," with a small fork-and-pin commitment. Recommendation: approve a scoped pilot in one module, not a company-wide standard.
To engineering: ~60 stars, last release January 2023, single maintainer. Value is the API surface — a polymorphic categorization trait, a category model with hierarchy, and attach/detach semantics — not the code volume, which is small enough to absorb. Proposed handling: pin the version, vendor or fork it, add integration tests against our Laravel and PHP versions, and budget one to two days to validate compatibility and confirm the hierarchy queries perform acceptably under our read patterns. If validation fails, the fallback is a two-table implementation we control outright — a known, bounded cost.
How can I help you explore Laravel packages today?