mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-04 04:37:46 +08:00
commit
815cd3f175
@ -1,7 +1,7 @@
|
||||
Hyperf provides you with external configuration support for distributed systems, which is adapted by default:
|
||||
|
||||
- [ctripcorp/apollo](https://github.com/ctripcorp/apollo) An open source project by Ctrip, by [hyper/config-apollo](https://github.com/hyperf/config-apollo) component Provide functional support.
|
||||
- Aliyun provides a free configuration center service [ACM (Application Config Manager)](https://help.aliyun.com/product/59604.html) by [hyper/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) component provides feature support.
|
||||
- [ctripcorp/apollo](https://github.com/ctripcorp/apollo) An open source project by Ctrip, by [hyperf/config-apollo](https://github.com/hyperf/config-apollo) component Provide functional support.
|
||||
- Aliyun provides a free configuration center service [ACM (Application Config Manager)](https://help.aliyun.com/product/59604.html) by [hyperf/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) component provides feature support.
|
||||
|
||||
## Why use the Configuration Center?
|
||||
|
||||
|
@ -172,7 +172,7 @@ return [
|
||||
|
||||
## Configuration Center
|
||||
|
||||
Hyperf provides you with external configuration support for distributed systems, by default we offer an open source project by Ctrip namely [ctripcorp/apollo](https://github.com/ctripcorp/apollo), by [hyper/config-apollo](https://github.com/hyperf/config-apollo) component provides functional support.
|
||||
Hyperf provides you with external configuration support for distributed systems, by default we offer an open source project by Ctrip namely [ctripcorp/apollo](https://github.com/ctripcorp/apollo), by [hyperf/config-apollo](https://github.com/hyperf/config-apollo) component provides functional support.
|
||||
Details on the usage of the configuration center are explained in the [Configuration Center](en/config-center.md) chapter.
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ message HiReply {
|
||||
- 使用 protoc 生成示例代码
|
||||
|
||||
```
|
||||
# 使用 linux 包管理工具安装 protoc, 下面以 alpine 为例, 也可以参考 hyper-skeleton 下的 Dockerfile
|
||||
# 使用 linux 包管理工具安装 protoc, 下面以 alpine 为例, 也可以参考 hyperf-skeleton 下的 Dockerfile
|
||||
apk add protobuf
|
||||
|
||||
# 使用 protoc 自动生成代码
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
Hyperf 为您提供了分布式系统的外部化配置支持,默认适配了:
|
||||
|
||||
- 由携程开源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyper/config-apollo](https://github.com/hyperf/config-apollo) 组件提供功能支持。
|
||||
- 阿里云提供的免费配置中心服务 [应用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyper/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 组件提供功能支持。
|
||||
- 由携程开源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyperf/config-apollo](https://github.com/hyperf/config-apollo) 组件提供功能支持。
|
||||
- 阿里云提供的免费配置中心服务 [应用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyperf/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 组件提供功能支持。
|
||||
|
||||
## 为什么要使用配置中心?
|
||||
|
||||
|
@ -157,7 +157,7 @@ $message = ErrorCode::getMessage(ErrorCode::PARAMS_INVALID, 'user_id');
|
||||
composer require hyperf/translation
|
||||
```
|
||||
|
||||
相关配置详见 [国际化](translation.md)
|
||||
相关配置详见 [国际化](zh-cn/translation.md)
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
@ -38,7 +38,7 @@ message HiReply {
|
||||
- 使用 protoc 生成示例代码
|
||||
|
||||
```
|
||||
# 使用 linux 包管理工具安装 protoc, 下面以 alpine 为例, 也可以参考 hyper-skeleton 下的 Dockerfile
|
||||
# 使用 linux 包管理工具安装 protoc, 下面以 alpine 为例, 也可以参考 hyperf-skeleton 下的 Dockerfile
|
||||
apk add protobuf
|
||||
|
||||
# 使用 protoc 自动生成代码
|
||||
|
@ -217,7 +217,7 @@ return [
|
||||
'arguments' => 'arguments',
|
||||
'result' => 'result',
|
||||
],
|
||||
// 数据库客户端 (hyper/database)
|
||||
// 数据库客户端 (hyperf/database)
|
||||
'db' => [
|
||||
'db.query' => 'db.query',
|
||||
'db.statement' => 'db.statement',
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
Hyperf 為您提供了分佈式系統的外部化配置支持,默認適配了:
|
||||
|
||||
- 由攜程開源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyper/config-apollo](https://github.com/hyperf/config-apollo) 組件提供功能支持。
|
||||
- 阿里雲提供的免費配置中心服務 [應用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyper/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 組件提供功能支持。
|
||||
- 由攜程開源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyperf/config-apollo](https://github.com/hyperf/config-apollo) 組件提供功能支持。
|
||||
- 阿里雲提供的免費配置中心服務 [應用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyperf/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 組件提供功能支持。
|
||||
|
||||
## 為什麼要使用配置中心?
|
||||
|
||||
|
@ -155,7 +155,7 @@ $message = ErrorCode::getMessage(ErrorCode::PARAMS_INVALID, 'user_id');
|
||||
composer require hyperf/translation
|
||||
```
|
||||
|
||||
相關配置詳見 [國際化](translation.md)
|
||||
相關配置詳見 [國際化](zh-hk/translation.md)
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
@ -38,7 +38,7 @@ message HiReply {
|
||||
- 使用 protoc 生成示例代碼
|
||||
|
||||
```
|
||||
# 使用 linux 包管理工具安裝 protoc, 下面以 alpine 為例, 也可以參考 hyper-skeleton 下的 Dockerfile
|
||||
# 使用 linux 包管理工具安裝 protoc, 下面以 alpine 為例, 也可以參考 hyperf-skeleton 下的 Dockerfile
|
||||
apk add protobuf
|
||||
|
||||
# 使用 protoc 自動生成代碼
|
||||
|
@ -37,7 +37,7 @@ ReactiveX 是 Reactive Extensions 的縮寫,一般簡寫為 Rx,最初是 LIN
|
||||
## 安裝
|
||||
|
||||
```bash
|
||||
composer require hyper/reactive-x
|
||||
composer require hyperf/reactive-x
|
||||
```
|
||||
|
||||
## 封裝
|
||||
|
@ -217,7 +217,7 @@ return [
|
||||
'arguments' => 'arguments',
|
||||
'result' => 'result',
|
||||
],
|
||||
// 數據庫客户端 (hyper/database)
|
||||
// 數據庫客户端 (hyperf/database)
|
||||
'db' => [
|
||||
'db.query' => 'db.query',
|
||||
'db.statement' => 'db.statement',
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
Hyperf 為您提供了分散式系統的外部化配置支援,預設適配了:
|
||||
|
||||
- 由攜程開源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyper/config-apollo](https://github.com/hyperf/config-apollo) 元件提供功能支援。
|
||||
- 阿里雲提供的免費配置中心服務 [應用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyper/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 元件提供功能支援。
|
||||
- 由攜程開源的 [ctripcorp/apollo](https://github.com/ctripcorp/apollo),由 [hyperf/config-apollo](https://github.com/hyperf/config-apollo) 元件提供功能支援。
|
||||
- 阿里雲提供的免費配置中心服務 [應用配置管理(ACM, Application Config Manager)](https://help.aliyun.com/product/59604.html),由 [hyperf/config-aliyun-acm](https://github.com/hyperf/config-aliyun-acm) 元件提供功能支援。
|
||||
|
||||
## 為什麼要使用配置中心?
|
||||
|
||||
|
@ -155,7 +155,7 @@ $message = ErrorCode::getMessage(ErrorCode::PARAMS_INVALID, 'user_id');
|
||||
composer require hyperf/translation
|
||||
```
|
||||
|
||||
相關配置詳見 [國際化](translation.md)
|
||||
相關配置詳見 [國際化](zh-tw/translation.md)
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
@ -38,7 +38,7 @@ message HiReply {
|
||||
- 使用 protoc 生成示例程式碼
|
||||
|
||||
```
|
||||
# 使用 linux 包管理工具安裝 protoc, 下面以 alpine 為例, 也可以參考 hyper-skeleton 下的 Dockerfile
|
||||
# 使用 linux 包管理工具安裝 protoc, 下面以 alpine 為例, 也可以參考 hyperf-skeleton 下的 Dockerfile
|
||||
apk add protobuf
|
||||
|
||||
# 使用 protoc 自動生成程式碼
|
||||
|
@ -37,7 +37,7 @@ ReactiveX 是 Reactive Extensions 的縮寫,一般簡寫為 Rx,最初是 LIN
|
||||
## 安裝
|
||||
|
||||
```bash
|
||||
composer require hyper/reactive-x
|
||||
composer require hyperf/reactive-x
|
||||
```
|
||||
|
||||
## 封裝
|
||||
|
@ -217,7 +217,7 @@ return [
|
||||
'arguments' => 'arguments',
|
||||
'result' => 'result',
|
||||
],
|
||||
// 資料庫客戶端 (hyper/database)
|
||||
// 資料庫客戶端 (hyperf/database)
|
||||
'db' => [
|
||||
'db.query' => 'db.query',
|
||||
'db.statement' => 'db.statement',
|
||||
|
Loading…
Reference in New Issue
Block a user