Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入安装配置中心命令和修改包版本 #706

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions doc/components/config/center.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@

## 使用

**配置中心必须安装:**`composer require imiphp/imi-config-center:2.1.x-dev`

### Nacos

**安装:**`composer require imiphp/imi-nacos:~2.1.0`
**安装:**`composer require imiphp/imi-nacos:2.1.x-dev`

**配置:**

`@app.beans`:

```php
use Imi\Util\Imi;
[
'ConfigCenter' => [
// 'mode' => \Imi\ConfigCenter\Enum\Mode::WORKER, // 工作进程模式
Expand Down Expand Up @@ -130,7 +133,7 @@ $configCenter->getDriver('nacos')->push($name, $value, [

### Etcd

**安装:**`composer require imiphp/imi-etcd:~2.1.0`
**安装:**`composer require imiphp/imi-etcd:2.1.x-dev`

**配置:**

Expand Down Expand Up @@ -211,7 +214,7 @@ $configCenter->getDriver('etcd')->push($name, $value, $options);

* 非 Swoole 用户请安装 [php-zookeeper](<https://github.com/php-zookeeper/php-zookeeper>) 扩展。

**安装:**`composer require imiphp/imi-zookeeper:~2.1.0`
**安装:**`composer require imiphp/imi-zookeeper:2.1.x-dev`

**配置:**

Expand Down
Loading