respect/config
Respect\Config is a lightweight PHP configuration package with a clean API for loading, merging, and accessing settings from arrays and files. It supports dot-notation, validation, and framework integration, making application configuration simple and predictable.
.env files or hardcoded values.config('features.new_ui') = true), enabling rapid experimentation without deployments.config('tenants.{tenant_id}.limits')) without duplicating code or using complex middleware.Adopt if:
.env, static arrays, or service locator anti-patterns).Look elsewhere if:
For Executives: "This package lets us control our app’s behavior like a dial—toggle features, adjust limits, or switch environments without code changes or redeploys. It’s like GitHub’s feature flags, but built into our Laravel stack. For $0 cost, we gain flexibility to experiment faster (e.g., A/B test UI changes) and reduce bugs from hardcoded values. It’s a force multiplier for our dev team, especially as we scale."
For Engineering: *"This is a drop-in replacement for Laravel’s service locator or scattered configs. Key wins:
config/app.php with a clean syntax (e.g., bind('Cache', fn() => new RedisCache())).config('cache.driver') or inject them directly—no more new or global helpers.Tradeoff: It’s not as feature-rich as Symfony’s DI, but it’s 10x lighter and Laravel-native. Let’s prototype it for our feature-flagging needs first."*
How can I help you explore Laravel packages today?