Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swoole/ext-zookeeper
🧑 Coroutine-based ZooKeeper Client for PHP
https://github.com/swoole/ext-zookeeper
asyncio coroutine ext-zookeeper php zookeeper
Last synced: 3 months ago
JSON representation
🧑 Coroutine-based ZooKeeper Client for PHP
- Host: GitHub
- URL: https://github.com/swoole/ext-zookeeper
- Owner: swoole
- Created: 2018-09-02T08:18:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T09:07:44.000Z (about 2 years ago)
- Last Synced: 2024-05-22T08:32:09.189Z (6 months ago)
- Topics: asyncio, coroutine, ext-zookeeper, php, zookeeper
- Language: C
- Homepage:
- Size: 797 KB
- Stars: 150
- Watchers: 18
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swoole - swoole/ext-zookeeper - A Swoole-based ZooKeeper client. :globe_with_meridians: (Client Packages)
README
# ext-zookeeper
依赖 `Swoole`和`PHP-X`。[![CircleCI](https://circleci.com/gh/swoole/ext-zookeeper/tree/master.svg?style=svg)](https://circleci.com/gh/swoole/ext-zookeeper/tree/master)
已支持的指令
----- [x] create
- [x] addAuth
- [x] get
- [x] set
- [x] getChildren
- [x] delete
- [x] exists
- [x] getAcl
- [x] setAcl
- [x] getState
- [x] getClientId安装 Swoole
----```shell
pecl install swoole
```安装 PHP-X
----参考 [PHP-X 安装](https://github.com/swoole/phpx)
Build
----```shell
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`