Config

PHP library for simple configuration management

MIT License

Downloads
180.8K
Stars
50
Committers
4

Bot releases are hidden (Show)

Config - v8.0.0 Latest Release

Published by PHLAK 12 months ago

Changed

  • Updated minimum supported PHP version to 8.0 and ensured compatibility up to 8.2

Detailed changelog: https://github.com/PHLAK/Config/compare/7.0.0...8.0.0

Config - v7.0.0

Published by PHLAK over 4 years ago

Added

  • Added a ConfigInterface which the Config class now impliments
  • Added Config::unset() method

Changed

  • Config::createFromDirectory() constructor renamed to Config::fromDirectory()
  • Exceptions now extend a base ConfigException class
  • Various internal improvements
  • Updated dependencies

Detailed changelog: https://github.com/PHLAK/Config/compare/6.1.0...7.0.0

Config - 6.1.0

Published by PHLAK almost 5 years ago

Added

  • Added Config::createFromDirectory() constructor for creating a new Config from a directory with prefixed entries by file
  • Added Config::append() method
  • Added Config::prepend() method

Detailed changelog: https://github.com/PHLAK/Config/compare/6.0.0...6.1.0

Config - v6.0.0

Published by PHLAK about 6 years ago

Added

  • Added TOML file driver

Changed

  • Updated minimum supported PHP version to 7.1

Detailed changelog: https://github.com/PHLAK/Config/compare/5.0.0...6.0.0

Config - 5.0.0

Published by PHLAK over 6 years ago

Changed

Detailed changelog: https://github.com/PHLAK/Config/compare/4.0.0...5.0.0

Config - 4.0.0

Published by PHLAK over 6 years ago

Added

  • 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.
  • Added Config::toArray() for returning the entire configuration object as an array

Changed

  • Config::get() no longer allows the $key parameter to be null

Removed

  • Removed the ability to access config variables via PHP object notation (e.g. $config->database->driver) since it required configuration items be re-cast to Config objects

Fixed

  • Fixed possible issue when loading multi-dimensial config files

Detailed changelog: https://github.com/PHLAK/Config/compare/3.0.1...4.0.0

Config - 3.0.1

Published by PHLAK over 6 years ago

Changed

  • Updated dependency requirements to work with symfony/yaml v4

Detailed changelog: https://github.com/PHLAK/Config/compare/3.0.0...3.0.1

Config - 3.0.0

Published by PHLAK about 7 years ago

Added

  • Added an exception message to InvalidFileException when thrown

Changed

  • Re-namespaced library to PHLAK\Config

Detailed changelog: https://github.com/PHLAK/Config/compare/2.0.0...3.0.0