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

Registry Laravel Package

joomla/registry

Key-value registry and configuration store for PHP. Load data from strings, files, arrays, or objects; access and modify values with getters/setters and dot-paths for nested keys; remove entries; ArrayAccess support; import/export across formats like JSON and XML.

View on GitHub
Deep Wiki
Context7

Updating from Version 1 to Version 2

The following changes were made to the Registry package between version 1 and version 2.

Minimum supported PHP version raised

All Framework packages now require PHP 7.2 or newer.

Object caching removed

The Joomla\Registry\Registry::getInstance() method has been removed completely and Joomla\Registry\Factory::getFormat() will now return a new Joomla\Registry\FormatInterface instance on each call.

Joomla\Registry\AbstractRegistryFormat removed

In version 1, the AbstractRegistryFormat class was deprecated in favor of the FormatInterface. In version 2, instead of extending the old abstract class, format objects must now implement the interface.

Joomla\Registry\Format\Php is now type aware

In version 1, the Php format object would create a registry class that implicitly converted all data to string notation. In version 2, the registry class respects the data type of each value.

Joomla\Registry\FormatInterface::objectToString() $options argument type hinted

The FormatInterface::objectToString() method (previously AbstractRegistryFormat::objectToString()) now typehints the $options argument as an array; this was not enforced in version 1.

Joomla\Registry\Registry methods type hinted

Several methods in the Registry class are now type hinted, this affects methods with an argument requiring an array and the Registry::merge() method which now typehints the $source argument.

Joomla\Registry\Registry::extract() always returns a Registry

Previously when there was no data for a key, Registry::extract() would return a null value. In version 2, an empty Registry is returned.

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