• Stars
    star
    150
  • Rank 246,561 (Top 5 %)
  • Language
    C
  • Created about 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🧑 Coroutine-based ZooKeeper Client for PHP

ext-zookeeper

依赖 SwoolePHP-X

CircleCI

已支持的指令

  • create
  • addAuth
  • get
  • set
  • getChildren
  • delete
  • exists
  • getAcl
  • setAcl
  • getState
  • getClientId

安装 Swoole

pecl install swoole

安装 PHP-X

参考 PHP-X 安装

Build

phpx build -v -d
phpx install

安装过程中可能遇到的问题

  1. 安装完成后,执行 php test/test.php 报找不到 swoole\zookeeper

    执行 php -i | grep php.ini 找到配置文件的位置,在 php.ini 中动态扩展配置区加入 extension=swoole_zookeeper.so

  2. 出现这种错误 Unable to load dynamic library '/usr/lib64/php/modules/cpp_ext.so' - libphpx.so: cannot open shared object file: No such file or directory in Unknown on line 0

    说明 PHP-X 没有安装成功,请重新安装 PHP-X

  3. 执行 phpx build -v -d,出现 fatal error: swoole/include/socket_hook.h No such file or directory

    请重新安装编译安装 Swoole

More Repositories

1

swoole-src

🚀 Coroutine-based concurrency library for PHP
C++
18,406
star
2

phpx

💗 C++ wrapper for Zend API
C++
823
star
3

php-cp

pdo and redis tcp connect proxy
C
639
star
4

docker-swoole

🏄 Official Docker Image of Swoole
Dockerfile
499
star
5

ide-helper

📘 Swoole IDE Helper
PHP
469
star
6

yasd

Yet Another Swoole Debugger
PHP
356
star
7

swoole-wiki

📖Swoole全量Markdown文档, Swoole-Doc, Swoole-Wiki
Shell
270
star
8

phpkafka

PHP Kafka client is used in PHP-FPM and Swoole. PHP Kafka client supports 50 APIs, which might be one that supports the most message types ever.
PHP
266
star
9

awesome-swoole

💎 A curated list of awesome things related to Swoole.
230
star
10

library

📚 Swoole Library
PHP
221
star
11

grpc

💎 Grpc client based on Swoole Coroutine
PHP
199
star
12

swoole-cli

SWOOLE-CLI is a php binary distribution composed swoole & php-core & cli & fpm and mostly of common extensions.
C
119
star
13

community-chinese

Swoole 提案
117
star
14

thrift-rpc-server

Thrift RPC Server based on swoole
PHP
115
star
15

auto_reload

Inotify监控文件变更自动重启swoole_server
PHP
105
star
16

ext-serialize

the fastest serialize function bound for php7
C
93
star
17

ext-async

Asynchronous callback client
PHP
87
star
18

proxy-server

Full asynchronous proxy server can support over a large number of concurrent.
PHP
84
star
19

debugger

Swoole 远程调试器
PHP
79
star
20

ext-postgresql

🐘 Coroutine-based client for PostgreSQL
C++
64
star
21

swoole-docs

📗 Please check the latest version: https://www.swoole.co.uk/docs/
61
star
22

phpy

PHP
43
star
23

zmq

ZeroMQ bindings for Swoole
PHP
37
star
24

dashboard

Vue
22
star
25

php-docker

php docker file
Dockerfile
20
star
26

docs

PHP
10
star
27

benchmark

PHP
9
star
28

make-library

Convert PHP code to C/C++ header file
PHP
6
star
29

documents

2
star
30

swoole.github.io

Swoole's website, docs & blog mainly focused on the english-speaking community.
CSS
2
star
31

v4.4-lts

C++
1
star
32

golang-h2demo

Go
1
star