PHP based Configuration file manager
composer require ialopezg/config- Exceptions handling.
- PHP configuration reader and writer.
- Configuration File Manager.
- PHP 5.6+
useialopezg\Libraries\Config\Config;
$config = Config::load('database.php');
// Get the valueecho$config->get('database.connections.default.db_driver');
// Change the value$config->set('database.connections.default.db_driver', 'MSSQL');
// Print new valueecho$config->get('database.connections.default.db_driver');
// Write the file$config->toFile('database.php');Please, check examples directory for more details of usage.
This project is under the MIT license. For more information see See LICENSE.