PHPackages                             djdaca/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. djdaca/ini

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

djdaca/ini
==========

Simple INI Configuration Wrapper

023PHP

Since Jan 25Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Simple INI Wrapper
======================

[](#php-simple-ini-wrapper)

Configuration class provide parsing and writing extended INI

API
---

[](#api)

$INI = Ini::getInstance();

$INI-&gt;addFile('/config.ini');

.....

config.ini

\[section\]

var=1

.....

$var = Ini::section('var');

or ...

$var = $INI-&gt;section('var');

or ...

$var = $INI-&gt;getSection('section', 'var');

and if you want modify config just call

$INI-&gt;set('section', array('var' =&gt; 2));

Simple - or not ? :)

.....

You can export or import by methods $INI-&gt;export() and $INI-&gt;import ($config)

Best of end

If u want modify config - you can write array to ini file by method $INI-&gt;write($file);

INI
---

[](#ini)

Extend ini syntax is similar to [http://en.wikipedia.org/wiki/INI\_file](http://en.wikipedia.org/wiki/INI_file) but u can write multiple levels of key by dot like:

key1.key2.key3 = value

This will be translated to:

array('key1' =&gt; array('key2' =&gt; array('key3' =&gt; 'value')));

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1162182?v=4)[Daniel Čekan](/maintainers/djdaca)[@djdaca](https://github.com/djdaca)

---

Top Contributors

[![djdaca](https://avatars.githubusercontent.com/u/1162182?v=4)](https://github.com/djdaca "djdaca (12 commits)")

### Embed Badge

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

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

PHPackages © 2026

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