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

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

typomedia/ini
=============

Parse and dump INI files

1.1.0(3y ago)017MITPHPPHP &gt;=7.3

Since Apr 10Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

INI Component
=============

[](#ini-component)

The INI component loads and dumps INI configs.

The Library is [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-4](https://www.php-fig.org/psr/psr-4/), [PSR-12](https://www.php-fig.org/psr/psr-12/) compliant and a replacement for `parse_ini_string()` without limitations for nested properties.

**Unit Tests have a Code Coverage of 100%!**

Requirements
------------

[](#requirements)

- `>= PHP 7.3`

Dependencies
------------

[](#dependencies)

- `none`

Install
-------

[](#install)

```
composer require typomedia/ini

```

Usage
-----

[](#usage)

### Parser

[](#parser)

```
use Typomedia\Ini\Parser;

$ini = file_get_contents('tests/Fixtures/Array.ini');
$parser = new Parser();
$array = $parser->parse($ini);
```

### Dumper

[](#dumper)

```
use Typomedia\Ini\Dumper;

$array = ['Section' => ['Property' => 'Value']];
$dumper = new Dumper();
$ini = $dumper->dump($array);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~570 days

Total

2

Last Release

1293d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

1.1.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5276515?v=4)[Philipp Speck](/maintainers/typomedia)[@typomedia](https://github.com/typomedia)

---

Top Contributors

[![typomedia](https://avatars.githubusercontent.com/u/5276515?v=4)](https://github.com/typomedia "typomedia (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

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

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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