Skip to content

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

License

Notifications You must be signed in to change notification settings

PiotrPress/initer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Initer

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages