PHP library for simple configuration management
MIT License
Bot releases are hidden (Show)
Detailed changelog: https://github.com/PHLAK/Config/compare/7.0.0...8.0.0
Published by PHLAK over 4 years ago
ConfigInterface
which the Config
class now implimentsConfig::unset()
methodConfig::createFromDirectory()
constructor renamed to Config::fromDirectory()
ConfigException
classDetailed changelog: https://github.com/PHLAK/Config/compare/6.1.0...7.0.0
Published by PHLAK almost 5 years ago
Config::createFromDirectory()
constructor for creating a new Config from a directory with prefixed entries by fileConfig::append()
methodConfig::prepend()
methodDetailed changelog: https://github.com/PHLAK/Config/compare/6.0.0...6.1.0
Published by PHLAK about 6 years ago
Detailed changelog: https://github.com/PHLAK/Config/compare/5.0.0...6.0.0
Published by PHLAK over 6 years ago
IteratorAggregate
so it can be iterated overConfig::merge()
now optionally accepts a second parameter to control overriding itemsDetailed changelog: https://github.com/PHLAK/Config/compare/4.0.0...5.0.0
Published by PHLAK over 6 years ago
Confg::__construct()
and Config::load()
now accept an optional $prefix
parameter. When set the new or loaded config will be nested in a config item with the value of $prefix
as the key.Config::toArray()
for returning the entire configuration object as an arrayConfig::get()
no longer allows the $key
parameter to be null$config->database->driver
) since it required configuration items be re-cast to Config objectsDetailed changelog: https://github.com/PHLAK/Config/compare/3.0.1...4.0.0
Published by PHLAK over 6 years ago
symfony/yaml
v4Detailed changelog: https://github.com/PHLAK/Config/compare/3.0.0...3.0.1
Published by PHLAK about 7 years ago
InvalidFileException
when thrownPHLAK\Config
Detailed changelog: https://github.com/PHLAK/Config/compare/2.0.0...3.0.0