Skip to content

Releases: PHLAK/Config

v8.0.0

31 Oct 21:32
a2f0cda
Compare
Choose a tag to compare

Changed

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

Detailed changelog: 7.0.0...8.0.0

v7.0.0

16 Mar 18:49
a67af04
Compare
Choose a tag to compare

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: 6.1.0...7.0.0

6.1.0

23 Dec 05:50
89c4ca9
Compare
Choose a tag to compare

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: 6.0.0...6.1.0

v6.0.0

06 Oct 05:55
7542c4b
Compare
Choose a tag to compare

Added

  • Added TOML file driver

Changed

  • Updated minimum supported PHP version to 7.1

Detailed changelog: 5.0.0...6.0.0

5.0.0

07 Jun 15:02
841714c
Compare
Choose a tag to compare

Changed

Detailed changelog: 4.0.0...5.0.0

4.0.0

31 Mar 04:59
f577f0a
Compare
Choose a tag to compare

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: 3.0.1...4.0.0

3.0.1

25 Feb 01:09
2bfdb69
Compare
Choose a tag to compare

Changed

  • Updated dependency requirements to work with symfony/yaml v4

Detailed changelog: 3.0.0...3.0.1

3.0.0

10 Sep 06:54
5e2ff2e
Compare
Choose a tag to compare

Added

  • Added an exception message to InvalidFileException when thrown

Changed

  • Re-namespaced library to PHLAK\Config

Detailed changelog: 2.0.0...3.0.0