PHP code example of wilkques / config
1. Go to this page and download the library: Download wilkques/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wilkques / config example snippets
return [
'abc' => 'efg',
];
config()
//->setPath('<config/path>') custom config path
->build();
$config = config('<key>'); // get config item
$config->setItem('<key>', '<value>'); // set config item
$config->withConfig([
'<key>' => '<value>' // set config with array
]);
$config->getItem('<key>'); // get config item
$config->all(); // get config all items