PackageTrack
Sign in Get early access

hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

3.2.0 14M downloads/mo #2607 most downloaded on Packagist hassankhan/config

What this package is like to depend on

Last release 2 years ago

no release in 18 months

Release timing varies

gaps range from 4 weeks to 2.0 years

Nearly every release is documented

notes for 28 of 31 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

31 releases · first in 2014

0 releases in the last 12 months

see the full history below

Release timeline

31 releases · Nov 2014 to Dec 2024
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 31
  1. 3.2.0 09 Dec 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.1.0...3.2.0

    Open source →
    Release notes

    Added

    • PHP 8.3 and 8.4 to the build matrix (#164)

    Fixed

    • Fatal error when root is null in has() method (#159 and #160)
    • PHP 8.4 deprecations implicitly marking parameter as nullable is deprecated (#163)
    Open source →
  2. 3.1.0 20 Dec 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 3.0.1...3.1.0

    Open source →
    Release notes

    Added

    • PHP 8.2 to the build matrix (#154)

    Fixed

    • Use assertEquals instead of assertSame (#153)
    • Namespaces in tests (#154)

    Removed

    • .travis.yml file (#152)
    • support for the end of life PHP versions (#144)
    Open source →
  3. 3.0.1 26 Mar 2022
    Release notes

    What's Changed

    Full Changelog: 3.0.0...3.0.1

    Open source →
    Release notes

    Added

    • Fix merge method (#145 and #147)
    Open source →
  4. 3.0.0 30 Dec 2021
    Release notes

    Added

    • Move CI to GitHub actions (#132, #136 and #137)
    • PHP 8.0 support, adding it to the build matrix (#138 and #139)
    • PHP 8.1 support, adding it to the build matrix (#135, #140 and #141)
    Open source →
    Release notes

    Added

    • Move CI to GitHub actions (#132, #136 and #137)
    • PHP 8.0 support, adding it to the build matrix (#138 and #139)
    • PHP 8.1 support, adding it to the build matrix (#135, #140 and #141)
    Open source →
  5. 2.2.0 07 Dec 2020
    Release notes

    Added

    • Serialization support (#127)
    • Support for Properties files (#128)

    Fixed

    • Test enhancement (#126)
    • Typehint on Xml parser, parse method (#130)
    Open source →
    Release notes

    Added

    • Serialization support (#127)
    • Support for Properties files (#128)

    Fixed

    • Test enhancement (#126)
    • Typehint on Xml parser, parse method (#130)
    Open source →
  6. v2.1.0 01 Sep 2019
    Release notes

    Added

    • Support for writing configuration back to file and string (#122)
    Open source →
    Release notes

    Added

    • Support for writing configuration back to file and string (#122)
    Open source →
  7. 2.0.2 06 Apr 2019
    Release notes

    Fixed

    • Implementations of ParserInterface and cleanup (#120)
    • Tests for PHP 7
    Open source →
    Release notes

    Fixed

    • Implementations of ParserInterface and cleanup (#120)
    • Tests for PHP 7
    Open source →
  8. 2.0.1 01 Feb 2019
    Release notes

    Fixed

    • Parsing PHP file (#114)
    • Parsing PHP string with $config variable (#118)
    Open source →
    Release notes

    Fixed

    • Parsing PHP file (#114)
    • Parsing PHP string with $config variable (#118)
    Open source →
  9. 2.0.0 03 Oct 2018
    Release notes

    Added

    • Usage of short array syntax (#109)
    • Support for string parsers (#111)

    Breaking changes

    • Changes of interface and parsers
    Open source →
  10. 1.1.0 22 Aug 2018
    Release notes

    Added

    • Added support for PHP constants in YAML (#112)
    Open source →
    Release notes

    Added

    • Added support for PHP constants in YAML (#112)
    Open source →
  11. 1.0.1 31 Mar 2018
    Release notes

    Fixed

    • Possibility to use an own file parser (#103)
    Open source →
  12. 1.0.0 03 Mar 2018
    Release notes

    Added

    • Merge support (#96)
    • Set PHP 5.5.9 as minimum required version (#75 and #99)

    Fixed

    • Fix PHP 5.6 test (#100)
    • Edit PHP versions tested on Travis (#101)
    • Add more info about the symfony/yaml requirement (#97 and #102)

    Breaking changes

    • PHP 5.3 and 5.4 are no longer supported.
    Open source →
  13. 0.11.2 07 Nov 2017

    Nothing published for this version

  14. 0.11.1 07 Nov 2017

    Nothing published for this version

  15. 0.11.0 07 Nov 2017

    Nothing published for this version

  16. 0.10.0 11 Feb 2016
    Release notes

    Added

    • Package-level exceptions so callers can catch exceptions at package-level
    • Added support for files suffixed with the .dist extension

    Fixed

    • Rearranged error-handling in FileParser\Json for better test coverage
    • Project-wide code style fixes to adhere to PSR-2
    • Fixes has() method returning false on null values in a config field
    Open source →
  17. 0.9.1 23 Jan 2016
    Release notes

    Added

    • PHP 7.0 is now tested on Travis
    Open source →
  18. 0.9.0 23 Jan 2016
    Release notes

    Added

    • Added namespace to example in README.md
    • Added has() method to ConfigInterface and implemented in AbstractConfig
    • Added all() method to ConfigInterface and implemented in AbstractConfig
    • Added documentation for new methods
    • AbstractConfig now implements the Iterator interface

    Fixed

    • PSR-2 compliance
    • Give YamlParser file content instead of path
    • Updated AbstractConfig constructor to only accept arrays
    • Removed check to fix loading an empty array
    • Fix for #44: Warnings emitted if configuration file is empty
    • Fix for #55: Unset cache after a set
    Open source →
  19. 0.8.2 21 Mar 2015
    Release notes

    Fixed

    • Some code smells in Config
    • Updated README.md
    Open source →
  20. 0.8.1 21 Mar 2015
    Release notes

    Fixed

    • Various things relating to recent repo transfer
    Open source →
  21. 0.8.0 21 Mar 2015
    Release notes

    Added

    • Individual FileParser classes for each filetype, and a FileParserInterface to type-hint methods with
    • Optional paths; you can now prefix a path with '?' and Config will skip the file if it doesn't exist

    Fixed

    • Made the Symfony YAML component a suggested dependency
    • Parent constructor was not being called from Config
    Open source →
  22. 0.7.1 24 Feb 2015
    Release notes

    Added

    • Moved file logic into file-specific loaders

    Fixed

    • Corrected class name in README.md
    Open source →
  23. 0.7.0 23 Feb 2015
    Release notes

    Fixed

    • Removed kludgy hack for YAML/YML
    Open source →
  24. 0.6.0 23 Feb 2015
    Release notes

    Added

    • Can now extend AbstractConfig to create simple subclasses without any file IO
    Open source →
  25. 0.5.0 23 Feb 2015
    Release notes

    Added

    • Moved file logic into file-specific loaders

    Fixed

    • Cleaned up exception class constructors, PSR-2 compliance
    Open source →
  26. 0.4.0 22 Feb 2015
    Release notes

    Fixed

    • Moved file logic into file-specific loaders
    Open source →
  27. 0.3.0 22 Feb 2015
    Release notes

    Fixed

    • Created new classes ConfigInterface and AbstractConfig to simplify code
    Open source →
  28. 0.2.1 22 Feb 2015
    Release notes

    Added

    • Array and directory support in constructor

    Fixed

    • Corrected deprecated usage of Symfony\Yaml
    Open source →
  29. 0.2.0 21 Feb 2015
    Release notes

    Added

    • Array and directory support in constructor

    Fixed

    • Now can load .YAML and .YML files
    Open source →
  30. 0.1.0 27 Nov 2014
    Release notes

    Added

    • Uses PSR-4 for autoloading
    • Supports YAML
    • Now uses custom exceptions
    Open source →
  31. 0.0.1 19 Nov 2014
    Release notes

    Added

    • Tagged first release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive