{"id":13699722,"url":"https://github.com/swoole/ext-zookeeper","last_synced_at":"2025-05-04T16:35:49.323Z","repository":{"id":113681516,"uuid":"147067386","full_name":"swoole/ext-zookeeper","owner":"swoole","description":"🧑 Coroutine-based ZooKeeper Client for PHP","archived":false,"fork":false,"pushed_at":"2022-08-31T09:07:44.000Z","size":816,"stargazers_count":150,"open_issues_count":2,"forks_count":35,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-11-13T05:36:10.514Z","etag":null,"topics":["asyncio","coroutine","ext-zookeeper","php","zookeeper"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swoole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-09-02T08:18:28.000Z","updated_at":"2023-12-18T01:15:34.000Z","dependencies_parsed_at":"2023-03-12T23:15:34.148Z","dependency_job_id":null,"html_url":"https://github.com/swoole/ext-zookeeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoole%2Fext-zookeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoole%2Fext-zookeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoole%2Fext-zookeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoole%2Fext-zookeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swoole","download_url":"https://codeload.github.com/swoole/ext-zookeeper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252367034,"owners_count":21736686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","coroutine","ext-zookeeper","php","zookeeper"],"created_at":"2024-08-02T20:00:42.455Z","updated_at":"2025-05-04T16:35:48.875Z","avatar_url":"https://github.com/swoole.png","language":"C","funding_links":[],"categories":["Client Packages"],"sub_categories":[],"readme":"# ext-zookeeper\n依赖 `Swoole`和`PHP-X`。\n\n[![CircleCI](https://circleci.com/gh/swoole/ext-zookeeper/tree/master.svg?style=svg)](https://circleci.com/gh/swoole/ext-zookeeper/tree/master)\n\n已支持的指令\n----\n\n- [x] create\n- [x] addAuth\n- [x] get\n- [x] set\n- [x] getChildren\n- [x] delete\n- [x] exists\n- [x] getAcl\n- [x] setAcl\n- [x] getState\n- [x] getClientId\n\n安装 Swoole\n----\n\n```shell\npecl install swoole\n```\n\n安装 PHP-X\n----\n\n参考 [PHP-X 安装](https://github.com/swoole/phpx)\n\nBuild\n----\n\n```shell\nphpx build -v -d\nphpx install\n```\n\n安装过程中可能遇到的问题\n----\n\n1. 安装完成后，执行 `php test/test.php`  报找不到 `swoole\\zookeeper` 类\n\n\t执行 `php -i | grep php.ini` 找到配置文件的位置，在 `php.ini` 中动态扩展配置区加入 `extension=swoole_zookeeper.so`\n\n2. 出现这种错误 `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`\n\n\t说明 `PHP-X` 没有安装成功，请重新安装 `PHP-X`\n\n3. 执行 `phpx build -v -d`，出现 `fatal error: swoole/include/socket_hook.h No such file or directory`\n\t\n\t请重新安装编译安装 `Swoole`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoole%2Fext-zookeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswoole%2Fext-zookeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoole%2Fext-zookeeper/lists"}