{"id":19756826,"url":"https://github.com/imiphp/imi-config-center","last_synced_at":"2025-04-30T12:30:52.150Z","repository":{"id":50275071,"uuid":"518293752","full_name":"imiphp/imi-config-center","owner":"imiphp","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-03T01:23:46.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"2.1","last_synced_at":"2024-05-23T01:31:29.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imiphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-27T03:19:07.000Z","updated_at":"2023-11-14T01:21:59.000Z","dependencies_parsed_at":"2023-01-23T04:15:13.327Z","dependency_job_id":null,"html_url":"https://github.com/imiphp/imi-config-center","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imiphp%2Fimi-config-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imiphp%2Fimi-config-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imiphp%2Fimi-config-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imiphp%2Fimi-config-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imiphp","download_url":"https://codeload.github.com/imiphp/imi-config-center/tar.gz/refs/heads/2.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224107282,"owners_count":17256923,"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":[],"created_at":"2024-11-12T03:17:06.233Z","updated_at":"2024-11-12T03:17:06.685Z","avatar_url":"https://github.com/imiphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imi-config-center\n\n[![Latest Version](https://img.shields.io/packagist/v/imiphp/imi-config-center.svg)](https://packagist.org/packages/imiphp/imi-config-center)\n[![Php Version](https://img.shields.io/badge/php-%3E=7.4-brightgreen.svg)](https://secure.php.net/)\n[![Swoole Version](https://img.shields.io/badge/swoole-%3E=4.8.0-brightgreen.svg)](https://github.com/swoole/swoole-src)\n[![IMI License](https://img.shields.io/github/license/imiphp/imi-config-center.svg)](https://github.com/imiphp/imi-config-center/blob/master/LICENSE)\n\n## 介绍\n\n此项目是 imi 框架的配置中心组件，仅包含抽象定义，无实现代码。请结合具体实现的配置组件使用。\n\n\u003e 正在开发中，随时可能修改，请勿用于生产环境！\n\n**支持的配置中心：**\n\n* [x] Nacos ([imi-nacos](https://github.com/imiphp/imi-nacos))\n\n* [ ] Apollo\n\n* [x] etcd ([imi-etcd](https://github.com/imiphp/imi-etcd))\n\n* [ ] Consul\n\n* [x] Zookeeper ([imi-zookeeper](https://github.com/imiphp/imi-zookeeper))\n\n……\n\n## 设计\n\n### 监听模式\n\n#### 工作进程模式\n\n每个进程自己监听，适用于 Swoole 环境。\n\n#### 进程模式\n\n由一个专门的进程监听，并通知到其它进程。适用于 Swoole、Workerman 环境。\n\n对配置中心压力更小。\n\n---\n\n\u003e php-fpm 模式比较特殊，是走的文件缓存逻辑。超过一定时间才去请求配置中心，获取数据，实时性有一定影响。\n\n### 监听方式\n\n#### 客户端轮询\n\n客户端定时请求配置中心，对配置中心服务端压力较大，但是最为通用。\n\n#### 服务端推送（长轮询）\n\n如果配置中心支持服务端推送（长轮询），建议用这个方式，对配置中心服务端压力较小。\n\n## 社群\n\n**imi 框架交流群：** 17916227 [![点击加群](https://pub.idqqimg.com/wpa/images/group.png \"点击加群\")](https://jq.qq.com/?_wv=1027\u0026k=5wXf4Zq)\n\n**微信群：**\n\n\u003cimg src=\"https://github.com/imiphp/imi/raw/2.1/res/wechat.png\" alt=\"imi\" width=\"256px\" /\u003e\n\n**打赏赞助：** \u003chttps://www.imiphp.com/donate.html\u003e\n\n## 运行环境\n\n* [PHP](https://php.net/) \u003e= 7.4\n* [Composer](https://getcomposer.org/) \u003e= 2.0\n* [Swoole](https://www.swoole.com/) \u003e= 4.8.0\n* [imi](https://www.imiphp.com/) \u003e= 2.1\n\n## 版权信息\n\n`imi-config-center` 遵循 MulanPSL-2.0 开源协议发布，并提供免费使用。\n\n## 捐赠\n\n\u003cimg src=\"https://cdn.jsdelivr.net/gh/imiphp/imi@2.1/res/pay.png\"/\u003e\n\n开源不求盈利，多少都是心意，生活不易，随缘随缘……\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimiphp%2Fimi-config-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimiphp%2Fimi-config-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimiphp%2Fimi-config-center/lists"}