All Projects → php-zookeeper → php-zookeeper

php-zookeeper / php-zookeeper

Licence: other
A PHP extension for interfacing with Apache ZooKeeper

Projects that are alternatives of or similar to php-zookeeper

Springcloud
springCloud学习
Stars: ✭ 251 (+75.52%)
Mutual labels:  zookeeper
kafka-elk-docker-compose
Deploy ELK stack and kafka with docker-compose
Stars: ✭ 78 (-45.45%)
Mutual labels:  zookeeper
ZooHelper
ZooKeeper可视化工具
Stars: ✭ 15 (-89.51%)
Mutual labels:  zookeeper
Javaguide
「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide!
Stars: ✭ 114,707 (+80114.69%)
Mutual labels:  zookeeper
NZookeeper
A zookeeper client library based on ZookeeperEx,easily use for Zookeeper.
Stars: ✭ 14 (-90.21%)
Mutual labels:  zookeeper
toy-rpc
Java基于Netty,Protostuff和Zookeeper实现分布式RPC框架
Stars: ✭ 55 (-61.54%)
Mutual labels:  zookeeper
Dbtester
Distributed database benchmark tester
Stars: ✭ 214 (+49.65%)
Mutual labels:  zookeeper
go-solr
solr go client from sendgrid, zookeeper aware, incorporates retries
Stars: ✭ 39 (-72.73%)
Mutual labels:  zookeeper
elec-master-demo
这是个demo代码,想使用请见 brotherbin/electing-master
Stars: ✭ 18 (-87.41%)
Mutual labels:  zookeeper
workflow
A ZooKeeper and Curator based distributed workflow management library that enables distributed task workflows.
Stars: ✭ 91 (-36.36%)
Mutual labels:  zookeeper
eagle
Eagle分布式rpc调用,借助Zookeeper实现服务注册和发现,基于AQS实现高性能连接池,支持分布式追踪、监控、过载保护等配置。提供Spring和SpringBoot插件,方便与Spring和SpringBoot集成。
Stars: ✭ 77 (-46.15%)
Mutual labels:  zookeeper
shield
基于Strom的日志实时流量分析主动防御(CCFirewall)系统
Stars: ✭ 68 (-52.45%)
Mutual labels:  zookeeper
rpc-spring-boot-starter
自定义rpc框架,支持Java序列化和protobuf序列化协议,多种负载均衡算法
Stars: ✭ 75 (-47.55%)
Mutual labels:  zookeeper
Advanced Java
😮 Core Interview Questions & Answers For Experienced Java(Backend) Developers | 互联网 Java 工程师进阶知识完全扫盲:涵盖高并发、分布式、高可用、微服务、海量数据处理等领域知识
Stars: ✭ 59,142 (+41258.04%)
Mutual labels:  zookeeper
codes-scratch-zookeeper-netty
zk + netty 实现集群节点文件同步服务
Stars: ✭ 29 (-79.72%)
Mutual labels:  zookeeper
Devicehive Java Server
DeviceHive Java Server
Stars: ✭ 241 (+68.53%)
Mutual labels:  zookeeper
akka-cluster-sample
A sample Akka Cluster application that uses ZooKeeper for service discovery
Stars: ✭ 13 (-90.91%)
Mutual labels:  zookeeper
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (-79.72%)
Mutual labels:  zookeeper
nifi
Deploy a secured, clustered, auto-scaling NiFi service in AWS.
Stars: ✭ 37 (-74.13%)
Mutual labels:  zookeeper
zookeeper-k8s-openshift
Zookeeper docker container, ready for deployments on kubernetes and openshift
Stars: ✭ 22 (-84.62%)
Mutual labels:  zookeeper

PHP ZooKeeper Extension

Build Status Coveralls

This extension uses libzookeeper library to provide API for communicating with ZooKeeper service.

ZooKeeper is an Apache project that enables centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

Requirements

Install

1.Compile ZooKeeper C Binding

$ ./configure --prefix=/path/to/zookeeper-c-binding
$ make
$ sudo make install

As of ZooKeeper 3.5.0, after unpacking source tarball, the following command should be executed before above-metioned steps:

$ autoreconf -if

As of ZooKeeper 3.5.9, the following command should be executed before autoreconf -if:

$ ant compile_jute

As of ZooKeeper 3.6.0, ant will fail because of missing build.xml. That file and two other files can be found in source tarball of 3.5.9:

$ cd apache-zookeeper-3.5.9
$ cp build.xml ivy* ../apache-zookeeper-3.6.2

2.Compile PHP ZooKeeper Extension

$ phpize
$ ./configure --with-libzookeeper-dir=/path/to/zookeeper-c-binding
$ make
$ sudo make install

Examples

<?php
$zc = new Zookeeper();
$zc->connect('localhost:2181');
var_dump($zc->get('/zookeeper'));
?>

Working with other extensions

1.Swoole

Swoole\Async::set([
    'enable_signalfd' => false, // See: https://github.com/swoole/swoole-src/issues/302
]);

$zk = new Zookeeper('localhost:2181');

Swoole\Process::signal(SIGTERM, function() {
        echo "TERM" . PHP_EOL;
        Swoole\Event::exit();
    });
Swoole\Event::wait();

For Developers

Branches

  • master: Main branch.
  • 0.5.x: The last branch which still supports PHP 5.x.

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].