activecollab / etcd Goto Github PK
View Code? Open in Web Editor NEWPHP client for etcd, a distributed configuration system
Home Page: https://labs.activecollab.com
License: MIT License
PHP client for etcd, a distributed configuration system
Home Page: https://labs.activecollab.com
License: MIT License
I really like that this fork of etcd-php strips the Guzzle dependency, however, it also does not support authentication to etcd.
Hey, if you call listSubdirs('/', true)
in etcd/src/Client.php
it works great but if you call listSubdirs('/', false)
again you*ll get listSubdirs('/', true
). I think the problem lives in traversalDir()
method in etcd/src/Client.php
. It stores in $this->dir globaly.
My quick fix would be:
public function listSubdirs($key = '/', $recursive = false)
{
try {
$data = $this->dirInfo($key, $recursive);
} catch (EtcdException $e) {
throw $e;
}
$iterator = new RecursiveArrayIterator($data);
//reset iterator array
$this->dirs = [];
return $this->traversalDir($iterator);
}
I'm working on implementing a PHP version of: http://python-etcd3.readthedocs.io/en/latest/_modules/etcd3/locks.html
I couldnt find methods for transaction, lease, cas etc. Any plans?
Distributed locking is currently a gap in PHP, one which I would like to solve.
Thank you for your beautiful work!
I built an Yii2-extension on top of this repo: https://github.com/WeeSee/yii2-etcd.git
But: when updating composer, there is a warning:
$ composer update
gives:
Package activecollab/etcd is abandoned, you should avoid using it. No replacement was suggested.
Any idea what causes this?
Maybe you could make a release 1.0 or higher?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.