leon2012 / goconfd-php-sdk
goconfd php sdk
0.0.1
2017-03-14 08:20 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~5.0
This package is not auto-updated.
Last update: 2025-01-18 22:25:34 UTC
README
goconfd php sdk
include_once("../vendor/autoload.php");
use goconfd\phpsdk\Goconfd;
$config = [
'save_path' => '/tmp/goconfd',
'key_prefix' => 'develop.activity',
'save_type' => 2,
'file_ext' => '',
'agent_url' => 'http://127.0.0.1:3001/',
];
$sdk = new Goconfd($config);
$kv = $sdk->get("develop.activity.k1");
if ($kv) {
echo $kv->getValue();
}