PHP code example of namshi / preconfig
1. Go to this page and download the library: Download namshi/preconfig 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/ */
namshi / preconfig example snippets
namespace Your\Namespace
use Namshi\PreConfig\PreConfig;
public function foo()
{
$argument = [
'key1' => [
'key2' => '{{ key1.key3 }}',
'key3' => [
'key4' => 'value4',
'key5' => 'value5'
]
]
];
$preConfig = new PreConfig($argument);
$key3 = $preConfig->get('key1.key3');
}
shell
ᐅ composer install --dev --prefer-source
ᐅ php vendor/bin/phpspec run