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.
The following changes were made to the Registry package between version 1 and version 2.
All Framework packages now require PHP 7.2 or newer.
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.
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.
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.
The FormatInterface::objectToString() method (previously AbstractRegistryFormat::objectToString()) now typehints
the $options argument as an array; this was not enforced in version 1.
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.
Previously when there was no data for a key, Registry::extract() would return a null value. In version 2, an
empty Registry is returned.
How can I help you explore Laravel packages today?