piotrpress / initer
This library reads/writes flat array data from/to key=value format compatible with .ini and .env files.
Installs: 268
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/piotrpress/initer
Requires
- php: >=7.4
- ext-ctype: *
- piotrpress/configer: ^1.0 || ^2.0
This package is not auto-updated.
Last update: 2025-10-18 02:50:08 UTC
README
This library reads/writes flat array data from/to key=value format compatible with .ini and .env files.
Installation
$ composer require piotrpress/initer
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
- PHP >=
7.4version. Ctypeextension.