PHPackages                             weesee/yii2-etcd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. weesee/yii2-etcd

ActiveYii2-extension[Database &amp; ORM](/categories/database)

weesee/yii2-etcd
================

Yii2 extension to work with ETCD key-value store from CoreOS

1.0(8y ago)23901[1 issues](https://github.com/WeeSee/yii2-etcd/issues)GPL-3.0-onlyPHPPHP &gt;=7.0

Since Feb 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/WeeSee/yii2-etcd)[ Packagist](https://packagist.org/packages/weesee/yii2-etcd)[ RSS](/packages/weesee-yii2-etcd/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Yii2-etcd
=========

[](#yii2-etcd)

Yii2 extension to access Etcd service.

Etcd is a key-value store for distributed systems.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist weesee/yii2-etcd "*"

```

or add

```
"weesee/yii2-etcd": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
    use weesee\etcd\Etcd;

    // setup connection to Etcd
    // setting root means all key are appended to this path
    $etcd = new Etcd([
        'etcdUrl' => 'http://127.0.0.1:2379',
        'root'=>"/yii2-etcd-test/"
    ]);

    // write key value pairs to etcd
    if ($etcd->exists("name"))
        $etcd->update("name","value");  // updates "/yii2-etcd-test/name"
    else
        $etcd->set("name","value");     // sets "/yii2-etcd-test/name"

    // remove key
    $etcd->removeKey("name");           // removes "/yii2-etcd-test/name"

    // get keys with values in current directory "/yii2-etcd-test"
    // as ArrayDataProvider. Simple to use for GidViews,...
    $dataProvider = $etcd->getKeyValueAsDataProvider();
```

Credits
-------

[](#credits)

Thanks for your great job which this Yii2-extension is build on:

- [Activecollab/etcd](https://github.com/activecollab/etcd.git)
- [Coreos/etcd](https://github.com/coreos/etcd)

Author / Licence
----------------

[](#author--licence)

WeeSee

GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3047d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3421590?v=4)[WeeSee](/maintainers/WeeSee)[@WeeSee](https://github.com/WeeSee)

---

Top Contributors

[![WeeSee](https://avatars.githubusercontent.com/u/3421590?v=4)](https://github.com/WeeSee "WeeSee (5 commits)")

---

Tags

clientetcdyii2yii2-extensionyii2etcd

### Embed Badge

![Health badge](/badges/weesee-yii2-etcd/health.svg)

```
[![Health](https://phpackages.com/badges/weesee-yii2-etcd/health.svg)](https://phpackages.com/packages/weesee-yii2-etcd)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11415.8k](/packages/yii2tech-illuminate)[mootensai/yii2-relation-trait

Yii 2 Models load with relation, &amp; transaction save with relation

47229.1k9](/packages/mootensai-yii2-relation-trait)[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

45147.2k1](/packages/nhkey-yii2-activerecord-history)[dmstr/yii2-db

Database extensions

19642.9k6](/packages/dmstr-yii2-db)[spanjeta/yii2-backup

Database Backup and Restore functionality

285.3k1](/packages/spanjeta-yii2-backup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
