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 2024Releases
latest 31-
3.2.009 Dec 2024Release notes
Open source →What's Changed
- Fix php 8.4 deprecations implicitly marking parameter as nullable is deprecated by @8ctopus in #163
- Add PHP 8.3 and 8.4 to the CI matrix by @DavidePastore in #164
- Fix fatal error when root is null in has() method by @omniError in #160
- Add release notes for 3.2.0 by @DavidePastore in #166
- Release 3.2.0 by @DavidePastore in #167
New Contributors
- @8ctopus made their first contribution in #163
- @omniError made their first contribution in #160
Full Changelog: 3.1.0...3.2.0
Release notes
Open source →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)
-
3.1.020 Dec 2022Release notes
Open source →What's Changed
- Drop support for the end of life PHP versions by @nbayramberdiyev in #149
- Remove .travis.yml file by @peter279k in #152
- Let assertEquals change into assertSame by @peter279k in #153
- Fix namespaces in tests & allow tests to run on PHP 8.2 by @nbayramberdiyev in #154
- Add release notes for 3.1.0 by @DavidePastore in #157
New Contributors
- @nbayramberdiyev made their first contribution in #149
Full Changelog: 3.0.1...3.1.0
Release notes
Open source →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)
-
3.0.126 Mar 2022Release notes
Open source →What's Changed
- Fix merge by @DavidePastore in #147
- Add release notes for 3.0.1 by @DavidePastore in #148
Full Changelog: 3.0.0...3.0.1
-
3.0.030 Dec 2021Release notes
Open source →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)
-
2.2.007 Dec 2020Release notes
Open source →Added
- Serialization support (#127)
- Support for Properties files (#128)
Fixed
- Test enhancement (#126)
- Typehint on Xml parser, parse method (#130)
-
v2.1.001 Sep 2019 -
2.0.206 Apr 2019Release notes
Open source →Fixed
- Implementations of
ParserInterfaceand cleanup (#120) - Tests for PHP 7
Release notes
Open source →Fixed
- Implementations of
ParserInterfaceand cleanup (#120) - Tests for PHP 7
- Implementations of
-
2.0.101 Feb 2019Release notes
Open source →Release notes
Open source →Fixed
- Parsing PHP file (#114)
- Parsing PHP string with
$configvariable (#118)
-
2.0.003 Oct 2018Release notes
Open source →Added
- Usage of short array syntax (#109)
- Support for string parsers (#111)
Breaking changes
- Changes of interface and parsers
-
1.1.022 Aug 2018 -
1.0.131 Mar 2018 -
1.0.003 Mar 2018Release notes
Open source →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.
-
0.11.207 Nov 2017Nothing published for this version
-
0.11.107 Nov 2017Nothing published for this version
-
0.11.007 Nov 2017Nothing published for this version
-
0.10.011 Feb 2016Release notes
Open source →Added
- Package-level exceptions so callers can catch exceptions at package-level
- Added support for files suffixed with the
.distextension
Fixed
- Rearranged error-handling in
FileParser\Jsonfor better test coverage - Project-wide code style fixes to adhere to PSR-2
- Fixes
has()method returningfalseonnullvalues in a config field
-
0.9.123 Jan 2016 -
0.9.023 Jan 2016Release notes
Open source →Added
- Added namespace to example in
README.md - Added
has()method toConfigInterfaceand implemented inAbstractConfig - Added
all()method toConfigInterfaceand implemented inAbstractConfig - Added documentation for new methods
AbstractConfignow implements theIteratorinterface
Fixed
- PSR-2 compliance
- Give YamlParser file content instead of path
- Updated
AbstractConfigconstructor 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
- Added namespace to example in
-
0.8.221 Mar 2015 -
0.8.121 Mar 2015 -
0.8.021 Mar 2015Release notes
Open source →Added
- Individual
FileParserclasses for each filetype, and aFileParserInterfaceto type-hint methods with - Optional paths; you can now prefix a path with '?' and
Configwill 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
- Individual
-
0.7.124 Feb 2015Release notes
Open source →Added
- Moved file logic into file-specific loaders
Fixed
- Corrected class name in README.md
-
0.7.023 Feb 2015 -
0.6.023 Feb 2015Release notes
Open source →Added
- Can now extend
AbstractConfigto create simple subclasses without any file IO
- Can now extend
-
0.5.023 Feb 2015Release notes
Open source →Added
- Moved file logic into file-specific loaders
Fixed
- Cleaned up exception class constructors, PSR-2 compliance
-
0.4.022 Feb 2015 -
0.3.022 Feb 2015Release notes
Open source →Fixed
- Created new classes
ConfigInterfaceandAbstractConfigto simplify code
- Created new classes
-
0.2.122 Feb 2015Release notes
Open source →Added
- Array and directory support in constructor
Fixed
- Corrected deprecated usage of
Symfony\Yaml
-
0.2.021 Feb 2015Release notes
Open source →Added
- Array and directory support in constructor
Fixed
- Now can load .YAML and .YML files
-
0.1.027 Nov 2014Release notes
Open source →Added
- Uses PSR-4 for autoloading
- Supports YAML
- Now uses custom exceptions
-
0.0.119 Nov 2014