PHPackages                             donatj/php-ini-builder - 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. donatj/php-ini-builder

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

donatj/php-ini-builder
======================

PHP `parse\_ini\_string` Compatible INI Builder

v0.3.1(1y ago)4127.6k↑67.9%11MITPHPPHP &gt;=7.1CI passing

Since Jul 17Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/donatj/PhpIniBuilder)[ Packagist](https://packagist.org/packages/donatj/php-ini-builder)[ Fund](https://www.paypal.me/donatj/15)[ GitHub Sponsors](https://github.com/donatj)[ RSS](/packages/donatj-php-ini-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (12)Used By (1)

PHP INI Builder
===============

[](#php-ini-builder)

[![Latest Stable Version](https://camo.githubusercontent.com/9cc2fda4ee6eb7f95b27e66b65e682ef2318911e64b7dd5e7c19686d7156999e/68747470733a2f2f706f7365722e707567782e6f72672f646f6e61746a2f7068702d696e692d6275696c6465722f76657273696f6e)](https://packagist.org/packages/donatj/php-ini-builder)[![License](https://camo.githubusercontent.com/44e199a0778cd9c9fe66634ffdad48efc63c28756da25f4f4c39765d64691687/68747470733a2f2f706f7365722e707567782e6f72672f646f6e61746a2f7068702d696e692d6275696c6465722f6c6963656e7365)](https://packagist.org/packages/donatj/php-ini-builder)[![ci.yml](https://github.com/donatj/phpUserAgent/actions/workflows/ci.yml/badge.svg)](https://github.com/donatj/phpUserAgent/actions/workflows/ci.yml)

Create PHP `parse_ini_string` / `parse_ini_file` compatible INI strings from associative arrays.

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

[](#requirements)

- **php**: &gt;=7.1
- **ext-ctype**: \*

Installing
----------

[](#installing)

Install the latest version with:

```
composer require 'donatj/php-ini-builder'
```

Example
-------

[](#example)

Here is a simple example script:

```
