composer require hyperf/etcd
etcd.php
<?php
return [
'uri' => 'http://192.168.1.200:2379',
'version' => 'v3beta',
'options' => [
'timeout' => 10,
],
];
<?php
use Hyperf\Utils\ApplicationContext;
use Hyperf\Etcd\KVInterface;
$client = ApplicationContext::getContainer()->get(KVInterface::class);