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

v1.0.0 2023-05-04 17:02 UTC

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.4 version.
  • Ctype extension.

License

MIT