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

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

indigophp/ini
=============

Provides better INI parsing and rendering

v0.2.0(10y ago)3684.7k↓13.6%[1 issues](https://github.com/indigophp/ini/issues)3MITPHPPHP &gt;=5.4.5

Since Jan 3Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (4)Used By (3)

Ini Tools
=========

[](#ini-tools)

[![Latest Version](https://camo.githubusercontent.com/8971f7d08c1513b0777bc47a453c550f9260317db81edc4f60bd3418ecfcf442/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f696e692e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/ini/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/3f4c55023291b75b12b1a8e6579f8a959566473383862acbc70f718682b6fb8d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f696e692e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/ini)[![Code Coverage](https://camo.githubusercontent.com/9501d32d059390d15051b199c1ae845e4cea18bd9b7eacf735add9f121ad3fa4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f696e692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/ini)[![Quality Score](https://camo.githubusercontent.com/dbae90bd927ebc55cd3dea0264ce0b9106f79b8143225c54b14c2f533a1907d1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e6469676f7068702f696e692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/ini)[![Total Downloads](https://camo.githubusercontent.com/7e85ca277becdd24dac98a112ed53c2cb5b08d567752e964c6812f8a2986a658/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f696e692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/ini)

**Provides better INI parsing and rendering.**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/ini
```

Usage
-----

[](#usage)

Features:

- Throws exceptions instead of errors
- Converts special values (integer, boolean values)
- Renders an array as INI string
- Control rendered output by passing flags to the renderer

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

This library is heavily inspired by [piwik/ini](https://github.com/piwik/component-ini).

Differences:

- License
- File actions are not available in this library, that's your responsibility
- Fallback implementation is provided by a transparent compatibility layer (WIP)
- Provides type conversion like in PHP 5.6.1
- Provides different ways for rendering array and boolean values
- Parser always uses raw scanner mode

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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 ~0 days

Total

3

Last Release

3788d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4

v0.2.0PHP &gt;=5.4.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (27 commits)")

---

Tags

parserrendererini

### Embed Badge

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

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

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k404.0M702](/packages/league-commonmark)[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)

PHPackages © 2026

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