ialopezg / config
Configuration file manager
v0.0.2
2020-09-15 16:50 UTC
Requires
- php: ^5.6 || ^7.0
- ialopezg/collections: 0.0.1
This package is auto-updated.
Last update: 2025-04-16 03:14:45 UTC
README
PHP based Configuration file manager
Installation
composer require ialopezg/config
Features
- Exceptions handling.
- PHP configuration reader and writer.
- Configuration File Manager.
Requirements
- PHP 5.6+
Usage
use ialopezg\Libraries\Config\Config; $config = Config::load('database.php'); // Get the value echo $config->get('database.connections.default.db_driver'); // Change the value $config->set('database.connections.default.db_driver', 'MSSQL'); // Print new value echo $config->get('database.connections.default.db_driver'); // Write the file $config->toFile('database.php');
Please, check examples
directory for more details of usage.
License
This project is under the MIT license. For more information see See LICENSE.