A simple configuration system in PHP 7.3
Used for management of the dependencies and autoloading code.
Used as a logging library.
Used for access to the PHP APCu cache.
Used for parsing and serializing yml content
- Place your project folder inside apache2 (or other server) Document root directory
- Run apache2
- Navigate from your browser to
localhost/php_configurator/index.php
access the demo page.
Import SimpleConfigSystem class
use SimpleConfigSystem\SimpleConfigSystem;
Create new instance of SimpleConfigSystem by providing path to a configuration file in JSON or YML format
$simple_config_system = new SimpleConfigSystem("data/data.json");
Call method for getting value by providing a path to parameter
$simple_config_system->getValue("servers:Neptune:ip");
Call method for setting value by providing a path to parameter
$simple_config_system->setValue("servers:Mars:type", "QA");