Skip to content

This library loads/saves php array from/to a configuration file.

License

Notifications You must be signed in to change notification settings

PiotrPress/configer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Configer

This library loads/saves php array from/to a configuration file.

Installation

$ composer require piotrpress/configer

Usage

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

use PiotrPress\Configer;

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

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

$config->save();

Requirements

  • Branch 2.x supports PHP >= 8.0 version.
  • Branch 1.x supports PHP ^7.4 version.

License

MIT