Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 833 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 833 Bytes

Configuration File Manager

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.