chillerlan/php-settings-container
Lightweight settings container for PHP that decouples configuration logic from your application. Provides a SettingsContainerInterface with property-hook style access (for PHP < 8.4). Not a dependency injection container.
SettingsContainerAbstract::hasSetHook() and SettingsContainerAbstract::hasGetHook() to check for existing property hooks.SettingsContainerAbstract::SET_PREFIX and SettingsContainerAbstract::GET_PREFIXThrowOnInvalidProperty to tell the magic get/set methods whether to throw when a property is inaccessible via the method SettingsContainerAbstract::throwOnInvalidProperty().(i somehow forgot to tag this earlier...)
SettingsContainerAbstract::toJSON() will now always throw a JsonException on error, regardless of the given $jsonOptionsSettingsContainerAbstract::toArray() now runs the object values through the magic getter (as it always should have)declare(strict_types=1)(backport of v 3.2.x except for serialize support)
SettingsContainerAbstract::toJSON() will now always throw a JsonException on error, regardless of the given $jsonOptionsSerializable interfaceSettingsContainerAbstract::toArray() now runs the object values through the magic getter (as it always should have)declare(strict_types=1)JsonSerializable::jsonSerialize() return type deprecation warning in PHP 8.1+ (#2)static instead of <interface>JsonSerializable::jsonSerialize() return type deprecation warning in PHP 8.1 (#2)call_user_func and call_user_func_array usage$this->{'get_'.$property}() (could've done this before)JsonSerializable$this->{'set_'.$property}($value)How can I help you explore Laravel packages today?