chillerlan/php-settings-container
Lightweight PHP settings container to keep configuration logic out of your app (not a DI container). Provides a SettingsContainerInterface with “property hook”-style access for PHP < 8.4, plus sane defaults for organizing and retrieving settings objects.
config/app.php from service classes).set_*/get_* methods or PHP 8.4+ property hooks.Illuminate/Container).spatie/array-to-object).vlucas/phpdotenv or Laravel’s env() helper).For Executives: "This package lets us manage application settings as immutable objects—like a structured, type-safe alternative to PHP arrays or global configs. It decouples settings from business logic, making our code more maintainable and easier to test. For example, we can load feature flags from JSON at runtime without bloating our DI container. It’s lightweight, integrates with Laravel’s ecosystem, and reduces technical debt by avoiding custom solutions."
For Engineers: *"This is a SettingsContainer for PHP/Laravel that:
new AppSettings(['debug' => true])).serialize) out of the box—great for caching or storage.Use case: Replace config('app.debug') calls with $settings->debug in services, with runtime overrides from JSON. Traits can add validation or logging defaults without polluting service classes.*
Key Benefits:
config() calls scattered across services.set_*/get_* methods.How can I help you explore Laravel packages today?