PHPackages                             codegun/ini - 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. codegun/ini

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

codegun/ini
===========

Ini Parser and Builder for PHP

0.1.1(13y ago)71371[2 PRs](https://github.com/hfcorriez/php-ini/pulls)MITPHPPHP &gt;=5.3.0

Since Jul 30Pushed 12y agoCompare

[ Source](https://github.com/hfcorriez/php-ini)[ Packagist](https://packagist.org/packages/codegun/ini)[ RSS](/packages/codegun-ini/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Intro
=====

[](#intro)

Ini Parser and Builder for PHP

Install
=======

[](#install)

Add `codegun/ini` to `composer.json` then install with `composer.phar install`

Namespace
=========

[](#namespace)

All the classes under `CodeGun\Ini` namespace

- Parser
- Builder

Usage
=====

[](#usage)

```
$builder = new \CodeGun\Ini\Builder(array(
    'a'        => 'd',
    'b'        => array('test'=> 'c'),
    'database' => array(
        'default' => array(
            'name' => 'db',
            'host' => 'master.db',
            'ip'   => 'dd',
        )
    ),
    'array'    => array('a', '1', 3),
));
echo $builder;
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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

Every ~3 days

Total

3

Last Release

5033d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/052da9fcd2d35025de486c255a8b4d38a67b2626b6ca626f6681bbc00187e62b?d=identicon)[hfcorriez](/maintainers/hfcorriez)

---

Top Contributors

[![hfcorriez](https://avatars.githubusercontent.com/u/119550?v=4)](https://github.com/hfcorriez "hfcorriez (15 commits)")[![bibby](https://avatars.githubusercontent.com/u/97957?v=4)](https://github.com/bibby "bibby (2 commits)")

---

Tags

ini

### Embed Badge

![Health badge](/badges/codegun-ini/health.svg)

```
[![Health](https://phpackages.com/badges/codegun-ini/health.svg)](https://phpackages.com/packages/codegun-ini)
```

###  Alternatives

[hassankhan/config

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

97513.5M170](/packages/hassankhan-config)[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)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)

PHPackages © 2026

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