Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (5) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-01-30 (13 days ago) | Not yet rated by the users | Total: 57 | All time: 10,087 This week: 193 |
Version | License | PHP version | Categories | |||
dframe-config 4.1.7 | The PHP License | 7 | PHP 5, Configuration |
Description | Author | |
This class can load configuration values from scripts with arrays. |
$ composer require dframe/config
use Dframe\Config\Config;
include_once 'vendor/autoload.php';
$configPath = __DIR__. DIRECTORY_SEPARATOR . 'config'. DIRECTORY_SEPARATOR;
$config = Config::load('ConfigFile', $configPath);
$config->get('key1'); // Return value
$config->get('keyValid', 'yes'); // return 'yes' || if key does not exist then you can replace value
Open-sourced software licensed under the MIT license
Files |
File | Role | Description | ||
---|---|---|---|---|
Exceptions (1 file) | ||||
Tests (1 file) | ||||
composer.json | Data | Auxiliary data | ||
Config.php | Class | Class source | ||
README.md | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.