Communicate with Zookeeper using PHP.
- Zookeeper C Client (v3.4, v3.5)
- PHP (v5.3, v5.4, v7.0)
$ phpize
$ ./configure --with-libzookeeper=/path/to/zookeeper-c-client
$ make
$ make install
<?php
$zc = new ZookeeperClient();
$zc->connect('localhost:2181');
var_dump($zc->get('/zookeeper'));
?>