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 3w 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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

1338d 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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