1. Go to this page and download the library: Download jcambien/kengai 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/ */
jcambien / kengai example snippets
use Kengai\Manager as Kengai;
use Kengai\SourceReader\YAML;
use Kengai\SourceReader\JSON;
// Create a Kengai manager instance
$kengai = new Kengai();
// Import your configuration files
$kengai->add(new YAML('myconfig.yml', 'myconfig'));
// Example of JSON support
$kengai->add(new JSON('composer.json', 'composer'));
// Fetch data
$kengai->fetch();
$bar = $kengai->get('foo.bar');
var_dump($bar);
use Kengai\Manager as Kengai;
use Kengai\SourceReader\YAML;
use Kengai\CacheManager\APC;
// Create a Kengai manager instance with APC support
$kengai = new Kengai(new APC());
...
// Fetch data
$kengai->fetch();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.