Yii 2.0: yii2-etcd

Client component to access ETCD server
1 follower

Yii2 extension to access Etcd service.

Etcd is a key-value store for distributed systems from CoreOS.


  • Yii2
  • PHP7
  • Etcd service running


See the README.md on Github for details.

use weesee\etcd\Etcd;
// setup connection to Etcd
// setting root means all key are appended to this path
$etcd = new Etcd([
    'etcdUrl' => '',
// write key value pairs to etcd
if ($etcd->exists("name"))
    $etcd->update("name","value");  // updates "/yii2-etcd-test/name"
    $etcd->set("name","value");     // sets "/yii2-etcd-test/name"


Be the first person to leave a comment

Please to leave your comment.

Create extension