PHPackages                             piotrpress/initer - 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. piotrpress/initer

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

piotrpress/initer
=================

This library reads/writes flat array data from/to key=value format compatible with .ini and .env files.

v1.0.0(3y ago)02951MITPHPPHP &gt;=7.4

Since May 4Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

Initer
======

[](#initer)

This library reads/writes flat array data from/to `key=value` format compatible with `.ini` and `.env` files.

Installation
------------

[](#installation)

```
$ composer require piotrpress/initer
```

Usage
-----

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';

use PiotrPress\Initer;

$config = new Initer( '.config', [
    'key' => 'value'
] );

echo $config[ 'key' ];
$config[ 'key' ] = 'new_value';

$config->save();
```

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

[](#requirements)

- PHP &gt;= `7.4` version.
- `Ctype` extension.

License
-------

[](#license)

[MIT](license.txt)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

[![PiotrPress](https://avatars.githubusercontent.com/u/10326736?v=4)](https://github.com/PiotrPress "PiotrPress (1 commits)")

---

Tags

configurationarrayconfigArray objectenvarray-accessinienvironment variablesenvironment-variableconfig fileconfiguration fileiniter

### Embed Badge

![Health badge](/badges/piotrpress-initer/health.svg)

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

###  Alternatives

[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)[illuminatech/array-factory

Allows DI aware object creation from array definition

2159.6k6](/packages/illuminatech-array-factory)[romanpitak/nginx-config-processor

Nginx configuration files processor.

7235.3k1](/packages/romanpitak-nginx-config-processor)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

121.9k2](/packages/michaels-data-manager)

PHPackages © 2026

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