Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Settings Container Laravel Package

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.

View on GitHub
Deep Wiki
Context7
4.0.0
  • required minimum PHP is now 8.4
  • dependency updates
3.3.0
  • Adjusted the behaviour of several methods in order to properly support property hooks in PHP 8.4+.
  • Added the methods SettingsContainerAbstract::hasSetHook() and SettingsContainerAbstract::hasGetHook() to check for existing property hooks.
  • Added the protected constants SettingsContainerAbstract::SET_PREFIX and SettingsContainerAbstract::GET_PREFIX
  • Added the attribute ThrowOnInvalidProperty to tell the magic get/set methods whether to throw when a property is inaccessible via the method SettingsContainerAbstract::throwOnInvalidProperty().
  • dependency updates

(i somehow forgot to tag this earlier...)

2.1.6
  • SettingsContainerAbstract::toJSON() will now always throw a JsonException on error, regardless of the given $jsonOptions
  • SettingsContainerAbstract::toArray() now runs the object values through the magic getter (as it always should have)
  • added explicit nullable types to several method parameters
  • added declare(strict_types=1)
  • switched static analysis from phan to phpstan (see https://github.com/chillerlan/php-qrcode/issues/277)
  • CI & dependency updates

(backport of v 3.2.x except for serialize support)

3.2.1
3.2.0
  • implements the Serializable interface
  • SettingsContainerAbstract::toArray() now runs the object values through the magic getter (as it always should have)
  • added explicit nullable types to several method parameters
  • added declare(strict_types=1)
  • dependency & CI updates
3.1.1
  • CI updates
2.1.5
  • removed examples namespace
  • CI updates
1.2.3
  • fix JsonSerializable::jsonSerialize() return type deprecation warning in PHP 8.1+ (#2)
  • CI updates
3.1.0
  • return static instead of <interface>
  • CI updates
3.0.0
  • dropped support for PHP < 8.1
2.1.4
  • fix JsonSerializable::jsonSerialize() return type deprecation warning in PHP 8.1 (#2)
2.1.3
  • remove unnecessary call_user_func and call_user_func_array usage
  • cleanup
2.1.2
  • CI updates
  • cleanup
1.2.2
  • PHP8 compatibility for the 1.2.x branch
2.1.1
  • minor consistency fixes
  • dependency updates
  • cleanup
2.1.0
  • PHP8 compatibility
2.0.0
  • PHP 7.4+
1.2.1
  • fixed a bug that prevented a custom getter on 'null' values
1.2.0
  • allow internal getter $this->{'get_'.$property}() (could've done this before)
  • implement JsonSerializable
  • PHPUnit 8.3
1.1.0
  • allow internal setter $this->{'set_'.$property}($value)
  • PHPUnit 8.1
1.0.2
  • phpunit version bump (8.0)
1.0.1
1.0.0
  • initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4