bemang / config-system
Systeme de configuration pour php.
1.2.0
2022-06-26 15:26 UTC
Suggests
- phpunit/phpunit: ^10
This package is auto-updated.
Last update: 2024-10-26 20:32:34 UTC
README
Installation
Need composer
composer require bemang/config-system
require('vendor/autoload.php');
Usage
use bemang\Config; $config = Config::getInstance(); //For get single instance $config->define('test', 'hello'); //For define key $config->get('test'); //For get key $config->define([ 'test' => 123, 'test3' => ['Jean', 'Yves'] ]); //Define multiple key $config->has('test'); //Verify a key $config->delete('test'); //Delete a key