PHPackages                             elzekool/configuration\_reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. elzekool/configuration\_reader

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

elzekool/configuration\_reader
==============================

Framework independent simple .ini configuration reader

0.1.0(12y ago)032[1 issues](https://github.com/elzekool/ConfigurationReader/issues)MITPHPPHP &gt;=5.3.0

Since Jul 14Pushed 12y agoCompare

[ Source](https://github.com/elzekool/ConfigurationReader)[ Packagist](https://packagist.org/packages/elzekool/configuration_reader)[ Docs](https://github.com/elzekool/ConfigurationReader)[ RSS](/packages/elzekool-configuration-reader/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ConfigurationReader
===================

[](#configurationreader)

Fast .ini parser. Framework independant. Allows reading .ini files using an object oriented interface. Supports overloading configuration from multiple .ini files.

Usage
-----

[](#usage)

- PHP 5.3.\* is required
- Create instance of ConfigurationReader passing list of files
- Read configuration options with get($option, $default) function

Example
-------

[](#example)

```
use ElzeKool\ConfigurationReader\ConfigurationReader;

$config = new ConfigurationReader(array(

    'configuration/config.ini',
    // [group]
    // option1="value"
    // option2="value2"
    // option3[]="value3"
    // option3[]="value4"

    'configuration/test/config.ini',
    // Does not exist

    'configuration/development/config.ini'
    // [group]
    // option1="altvalue1"
    // option3[]="altvalue3"
    // option3[]="altvalue4"
    // option5="development"
));

var_dump($config->get('group.option1'));
// string(9) "altvalue1"

var_dump($config->get('group.doesnotexists', 'nope'));
// string(4) "nope"

print_r($config->get('group'));
// Array
// (
//    [option1] => altvalue1
//    [option2] => value2
//    [option3] => Array
//        (
//            [0] => altvalue3
//            [1] => altvalue4
//        )
//
//     [option5] => development
// )
```

License
-------

[](#license)

(MIT License)

Copyright (c) 2013 Elze Kool

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4688d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90e8d05eab1cd42d9ae3ab39d812ccc24eb617935e9ce968ec36f9b8da2eedb8?d=identicon)[elzekool](/maintainers/elzekool)

---

Tags

configurationparserlibraryini

### Embed Badge

![Health badge](/badges/elzekool-configuration-reader/health.svg)

```
[![Health](https://phpackages.com/badges/elzekool-configuration-reader/health.svg)](https://phpackages.com/packages/elzekool-configuration-reader)
```

###  Alternatives

[thunderer/shortcode

Advanced shortcode (BBCode) parser and engine for PHP

3892.6M44](/packages/thunderer-shortcode)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)[leonelquinteros/php-toml

PHP parser for TOML language ( https://github.com/toml-lang/toml )

266.7k](/packages/leonelquinteros-php-toml)[gccloud/parser

CodeIgniter 3 Parser library extension

166.5k](/packages/gccloud-parser)[noi/parsedown-rubytext

An extension of Parsedown that adds support for ruby text (aka furigana) in Markdown.

155.6k2](/packages/noi-parsedown-rubytext)[phppkg/config

Config manage, load, get. Supports INI,JSON,YAML,NEON,PHP format file

133.5k](/packages/phppkg-config)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
