ialopezg / config
Configuration file manager
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ialopezg/config
Requires
- php: ^5.6 || ^7.0
- ialopezg/collections: 0.0.1
This package is auto-updated.
Last update: 2025-10-16 04:19:30 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.