App\Payments\StripeGateway) or stable short keys (stripe). This package gives a first-class way to maintain the alias↔class mapping, so the "store FQCNs and hope we never rename" shortcut stops being the default.Class => 'slug' constant map or a switch on class names. This is a candidate drop-in replacement for that pattern: small surface area, MIT, and it removes an internal file that only one team understands.type fields appear in public API responses or audit/event logs, aliases become part of the product contract. Choosing them deliberately (rather than exposing FQCNs) is a compatibility decision worth making early.match statements scattered across the codebase.Consider it when:
Look elsewhere when:
Relation::morphMap() already solves that and is one less dependency.To executives: This is a tiny, MIT-licensed utility that solves a persistent, unglamorous problem — our code and our stored data currently share the same names, so renaming a class risks corrupting historical records or breaking API clients. Adopting stable aliases removes that coupling. Cost is near zero (small dependency, no licensing, no vendor contract), and the alternative is either a bespoke internal map or continued refactor friction. Recommend approving a short timeboxed spike, not a broad mandate.
To engineering: Small, framework-agnostic PHP library that maps classes to human-readable aliases plus arbitrary metadata, with cached lookups so you're not paying for reflection per request. It replaces the ad-hoc class-to-slug maps we keep rewriting, and gives us one place to change when a class moves. Trade-off: no Laravel integration out of the box (we wire the cache and config ourselves), low upstream adoption, and it's essentially one maintainer's project — so we wrap it behind a thin internal interface. That wrapper costs an afternoon and makes exit trivial if the package stalls. Recent tagged release (Dec 2025) and MIT license keep the risk profile low; the main risk is abandonment, which the wrapper neutralizes.
How can I help you explore Laravel packages today?