Config Class

Get instance

Get the instance of the Config class:

$config = Config::getInstance();

Clear instance

Clear the instance of the Config class:

$config->clearInstance() : void;

Init

Init the class:

$config->init(string $configFile) : void;

Get

Get the value from config:

$config->get(string $key) : ?string;

Get array

Get the array from config:

$config->getArray() : array;

Set

Set the value to config:

$config->set(string $key, string $value) : void;

Parse

Parse from database url:

$config->parse(string $dbUrl) : void;

Write

Write config to file:

$config->write() : bool;

Clear

Clear the config:

$config->clear() : void;
Edit on GitHub