boson-php/globals-provider
Laravel package that exposes PHP superglobals and environment values through a service provider, offering a consistent way to access and share request/runtime globals across your app, with simple configuration and container bindings for easier testing.
app()->singleton).app()->bind or a dedicated cache store).Executives: "This MIT-licensed package lets us centralize app-wide settings (e.g., feature toggles, themes) in Laravel without adding complexity. It’s a lightweight alternative to custom solutions, reducing dev time and tech debt—ideal for our [roadmap item X]."
Engineering:
*"Globals Provider offers a clean way to inject read-only state (e.g., config('globals')) via Laravel’s service container. Key benefits:
Devs:
"Replace define('APP_VERSION', '1.0') with $globals->get('version'). Works out-of-the-box with Laravel’s DI—just bind it in AppServiceProvider."
How can I help you explore Laravel packages today?