PHPackages                             jayzeng/config-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. jayzeng/config-reader

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

jayzeng/config-reader
=====================

Ini config reader for PHP 5.3

v0.1(13y ago)248MITPHPPHP &gt;=5.3.0

Since Feb 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jayzeng/config-reader)[ Packagist](https://packagist.org/packages/jayzeng/config-reader)[ Docs](https://github.com/jayzeng/config-reader)[ RSS](/packages/jayzeng-config-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Config Reader to parse ini files
================================

[](#config-reader-to-parse-ini-files)

[![Latest Stable Version](https://camo.githubusercontent.com/504131339d3560e9171a732cb33b31cc7d53c3fcd7042f28f0ad44a88a6f7de1/68747470733a2f2f706f7365722e707567782e6f72672f6a61797a656e672f636f6e6669672d7265616465722f762f737461626c652e706e67)](https://packagist.org/packages/jayzeng/config-reader)[![Total Downloads](https://camo.githubusercontent.com/dc064ca96ea0ab2541c421cb4d9dc0a763f80a194fd2e99cfb662b5324a3a154/68747470733a2f2f706f7365722e707567782e6f72672f6a61797a656e672f636f6e6669672d7265616465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jayzeng/config-reader)[![Build Status](https://camo.githubusercontent.com/35efc4bc4ed3624a63fa246819e247bb2dd5e7293fed9d09602d67570c61884a/68747470733a2f2f7472617669732d63692e6f72672f6a61797a656e672f636f6e6669672d7265616465722e706e67)](https://travis-ci.org/jayzeng/config-reader)

Project website: ()

\##Usage: config.ini

```
[production]
username = 'jayzeng'
password = 'password'

[whitelistIps]
ip[] = 127.0.0.1
ip[] = 192.168.0.1/24
```

```
use ConfigReader\Ini as IniReader;

// read a specific rule
$username = IniReader::factory( __DIR__ . DIRECTORY_SEPARATOR . 'config.ini' )
                    ->setLabel('production')
                    ->getLabel('username');
                    // returns jayzeng
```

Read all rules within a label section

```
use ConfigReader\Ini as IniReader;

// read all rules within production section
$prodConfig = IniReader::factory( __DIR__ . DIRECTORY_SEPARATOR . 'config.ini' )
                    ->setLabel('production')
                    ->toArray();

// returns
// array
// 'username' => 'jayzeng'
// 'password' => 'password'

// You can also populate an array
$ips = IniReader::factory( __DIR__ . DIRECTORY_SEPARATOR . 'config.ini' )
                    ->setLabel('whitelistIps')
                    ->toArray();
// returns
// array
// 'ip' => array ( '127.0.0.1', '192.168.0.1/24' );
```

\##Issues &amp; Development

- Source hosted [GitHub](https://github.com/jayzeng/config-reader)
- Report issues, questions, feature requests on [GitHub Issues](https://github.com/jayzeng/config-reader/issues)

\##How to release new version?

- RELEASE\_VERSION - version number
- RELEASE\_MESSAGE - release message

```
make release RELEASE_VERSION="0.1" RELEASE_MESSAGE="v0.1 is released"
```

\##Author: [Jay Zeng](https://github.com/jayzeng/), e-mail:

[![Bitdeli Badge](https://camo.githubusercontent.com/8dc3a558c2aee13d11b62b1da7d7aeab97a3bffa5a0eb8113aa8c6473068e17e/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6a61797a656e672f636f6e6669672d7265616465722f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.6% of commits — single point of failure

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

4852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08b89f14c74d6d6ba225fe3b29d360ba509116763d4d906991eb9f665cc02091?d=identicon)[jayzeng](/maintainers/jayzeng)

---

Top Contributors

[![jayzeng](https://avatars.githubusercontent.com/u/141891?v=4)](https://github.com/jayzeng "jayzeng (28 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

configparserreaderini

### Embed Badge

![Health badge](/badges/jayzeng-config-reader/health.svg)

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

###  Alternatives

[hassankhan/config

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

97513.5M170](/packages/hassankhan-config)[bcncommerce/json-stream

A bundle of tools to work with JSON in PHP

642.2M3](/packages/bcncommerce-json-stream)[laktak/hjson

JSON for Humans. A configuration file format with relaxed syntax, fewer mistakes and more comments.

86233.7k12](/packages/laktak-hjson)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[dallgoot/yaml

Provides loader, dumper and an API for YAML content. Loader builds to equivalent data types in PHP 8.x

43185.8k6](/packages/dallgoot-yaml)[romanpitak/nginx-config-processor

Nginx configuration files processor.

7235.3k1](/packages/romanpitak-nginx-config-processor)

PHPackages © 2026

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