hyperf/docs/zh-hk
李铭昕 9c179be234
Some checks are pending
Mirror to CNB Repo / git-mirror (push) Waiting to run
Mirror to Gitee Repo / git-mirror (push) Waiting to run
Test for Hyperf Components / Test for Database (5.7, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Database (5.7, 8.2) (push) Waiting to run
Test for Hyperf Components / Test for Database (5.7, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.0, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.0, 8.2) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.0, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.4, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.4, 8.2) (push) Waiting to run
Test for Hyperf Components / Test for Database (8.4, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.1, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.1, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.1, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.2, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.2, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.2, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.3, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.3, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Filesystem (8.3, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Building PHAR (, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Building PHAR (--no-dev, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.1, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.1, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.2, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.2, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.3, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Container V1.0 ~ V2.0 (8.3, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.1, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.1, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.2, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.2, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.3, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Http Message V1.0 ~ V2.0 (8.3, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^1.0, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^2.0, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^2.0, 8.2) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^2.0, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^3.0, 8.1) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^3.0, 8.2) (push) Waiting to run
Test for Hyperf Components / Test for Psr Log V1.0 ~ V3.0 (^3.0, 8.3) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.1, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.1, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.1, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.2, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.2, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.2, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.3, ^1.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.3, ^2.0) (push) Waiting to run
Test for Hyperf Components / Test for Psr SimpleCache V1.0 ~ V3.0 (8.3, ^3.0) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.1, redis) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.1, redis-5.3.7) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.2, redis) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.2, redis-5.3.7) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.3, redis) (push) Waiting to run
Test for Hyperf Components / Test for Redis Module (8.3, redis-5.3.7) (push) Waiting to run
Test for Hyperf Components / Test for Symfony (8.1, ^6.0) (push) Waiting to run
Test for Hyperf Components / Test for Symfony (8.2, ^6.0) (push) Waiting to run
Test for Hyperf Components / Test for Symfony (8.2, ^7.0) (push) Waiting to run
Test for Hyperf Components / Test for Symfony (8.3, ^6.0) (push) Waiting to run
Test for Hyperf Components / Test for Symfony (8.3, ^7.0) (push) Waiting to run
PHPUnit for Hyperf / PHP CS Fix on PHP${{ matrix.php }} ${{ matrix.swoole }} (ubuntu-latest, 8.1, swoole) (push) Waiting to run
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.1, master) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.1, v5.0.3) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.1, v5.1.4) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.1, v6.0.0-alpha) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.2, master) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.2, v5.0.3) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.2, v5.1.4) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.2, v6.0.0-alpha) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.3, master) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.3, v5.1.4) (push) Blocked by required conditions
PHPUnit for Hyperf / Test on PHP${{ matrix.php-version }} Swoole-${{ matrix.sw-version }} (ubuntu-latest, 8.3, v6.0.0-alpha) (push) Blocked by required conditions
Release v3.1.47 (#7180)
Co-authored-by: Anderson Ribeiro Lopes <a.alopes@ext.ppay.me>
Co-authored-by: Weslen Teche <weslen_teche@hotmail.com>
Co-authored-by: limingxinleo <limingxinleo@users.noreply.github.com>
2024-11-28 10:28:20 +08:00
..
changelog Release v3.1.47 (#7180) 2024-11-28 10:28:20 +08:00
component-guide Release v3.1.16 (#6649) 2024-04-02 10:40:09 +08:00
db Release v3.1.44 (#7130) 2024-10-24 09:38:29 +08:00
eco Release v3.0.1 (#5295) 2023-01-09 08:06:39 +08:00
imgs Remove useless images 2022-11-15 12:08:55 +08:00
middleware Upgrade docs about metrics. (#6356) 2023-12-05 18:08:44 +08:00
quick-start Upgrade Docs: Remove Redundant @var Annotations for Injected Properties (#7134) 2024-10-31 09:50:31 +08:00
sdks Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621) 2023-04-11 15:57:32 +08:00
tutorial Upgrade docs for v3.1 (#6335) 2023-11-29 11:44:48 +08:00
upgrade Release v3.1.4 (#6427) 2023-12-29 09:30:38 +08:00
amqp.md Release v3.1.26 (#6871) 2024-06-13 10:07:29 +08:00
annotation.md Upgrade docs about replacing utils with support (#6425) 2024-01-01 19:52:20 +08:00
aop.md Release v3.0.33 (#6054) 2023-08-18 11:54:00 +08:00
async-queue.md Upgrade Docs: Remove Redundant @var Annotations for Injected Properties (#7134) 2024-10-31 09:50:31 +08:00
awesome-components.md Release v3.1.26 (#6871) 2024-06-13 10:07:29 +08:00
cache.md Added MemoryDriver for hyperf/cache (#6542) 2024-02-20 11:22:01 +08:00
changelog-v1.0.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
changelog-v1.1.md Typo: removed whitespace from breaking link (#6583) 2024-03-12 07:54:00 +08:00
changelog-v2.0.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
changelog-v2.1.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
changelog-v2.2.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
changelog-v3.0.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
circuit-breaker.md Add callable type support to the fallback property of CircuitBreaker Attribute (#6363) 2023-12-07 11:25:12 +08:00
command.md Release v3.1.28 (#6914) 2024-06-27 11:21:23 +08:00
communication.md Split changelog docs. (#6211) 2023-10-12 22:08:55 -05:00
config-center.md Release v3.1.7 (#6503) 2024-01-26 10:02:44 +08:00
config.md Upgrade docs about replacing utils with support (#6425) 2024-01-01 19:52:20 +08:00
constants.md Release v3.1.46 (#7162) 2024-11-21 10:00:28 +08:00
consul.md Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621) 2023-04-11 15:57:32 +08:00
contribute.md docs(contribute): update pull request url 2020-06-26 19:20:17 +08:00
controller.md Merge remote-tracking branch 'origin/master' into 2.0 2020-06-19 19:10:12 +08:00
coroutine-server.md Update docs and translate (#5262) 2022-12-27 13:37:04 +08:00
coroutine.md Release v3.1.4 (#6427) 2023-12-29 09:30:38 +08:00
crontab.md Update docs for crontab (#6486) 2024-01-22 11:35:28 +08:00
dag.md Translate docs 2021-07-19 13:00:24 +08:00
devtool.md Update devtool docs 2021-12-13 15:20:34 +08:00
di.md Added docs about PriorityDefinition. (#6139) 2023-09-07 14:50:57 +08:00
distributed-transaction.md Remove mirrors.aliyun.com/composer (#5778) 2023-06-01 12:38:34 +08:00
donate.md Do not separate the docs folders by version, use git branch to distinguish the difference versions docs 2020-06-11 13:55:15 +08:00
elasticsearch.md Release v2.1.16 (#3522) 2021-04-26 08:25:52 +08:00
enterprise-service.md Release v2.2.26 (#4544) 2022-02-21 09:27:49 +08:00
etcd.md Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621) 2023-04-11 15:57:32 +08:00
event.md Upgrade Docs: Remove Redundant @var Annotations for Injected Properties (#7134) 2024-10-31 09:50:31 +08:00
exception-handler.md Release v3.1.19 (#6699) 2024-04-18 10:23:24 +08:00
filesystem.md Release v3.1.16 (#6649) 2024-04-02 10:40:09 +08:00
graphql.md Upgrade Docs: Remove Redundant @var Annotations for Injected Properties (#7134) 2024-10-31 09:50:31 +08:00
grpc.md Upgrade docs about use camelcase naming convention for gRPC methods (#6430) 2024-01-04 10:06:27 +08:00
guzzle.md Use Hyperf\Coroutine\Coroutine instead of Hyperf\Utils\Coroutine (#5623) 2023-04-12 12:36:10 +08:00
jet.md Add doc 2020-08-10 02:12:16 +08:00
json-rpc.md Release v3.1.4 (#6427) 2023-12-29 09:30:38 +08:00
kafka.md Release v3.1.14 (#6610) 2024-03-21 22:26:15 +08:00
lifecycle.md Update docs and translate (#5262) 2022-12-27 13:37:04 +08:00
logger.md Release v3.1.43 (#7111) 2024-10-10 09:57:43 +08:00
memory.md Do not separate the docs folders by version, use git branch to distinguish the difference versions docs 2020-06-11 13:55:15 +08:00
metric.md Release v3.1.45 (#7153) 2024-11-14 10:27:55 +08:00
microservice.md Release v3.1.36 (#7004) 2024-08-15 13:50:58 +08:00
nacos.md Release v3.0.7 (#5431) 2023-02-18 06:40:54 +08:00
nano.md Update docs and translate (#5262) 2022-12-27 13:37:04 +08:00
nats.md Release v3.1.6 (#6478) 2024-01-18 18:28:11 +08:00
nsq.md Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621) 2023-04-11 15:57:32 +08:00
paginator.md Release v3.1.4 (#6427) 2023-12-29 09:30:38 +08:00
phar.md Update docs and translate (#5262) 2022-12-27 13:37:04 +08:00
pool.md Update docs and translate (#5262) 2022-12-27 13:37:04 +08:00
process.md Update docs about how to use async io in process. (#6104) 2023-08-30 09:35:31 +08:00
rate-limit.md Release v3.1.25 (#6838) 2024-06-06 10:58:02 +08:00
reactive-x.md Release v3.1.35 (#6993) 2024-08-08 10:05:07 +08:00
README.md Release v3.1.7 (#6503) 2024-01-26 10:02:44 +08:00
redis.md Added options for redis config (#6194) 2023-10-08 21:06:25 -05:00
release-planning.md Release v3.1.0 (#6340) 2023-12-01 00:00:30 +08:00
request.md Added docs about PriorityDefinition. (#6139) 2023-09-07 14:50:57 +08:00
response.md Fixed docs for command model and resource. (#5659) 2023-04-23 17:51:40 +08:00
retry.md Update docs and translate 2023-01-02 23:32:23 +00:00
router.md Upgrade docs about skip_cache_results cache config (#6465) 2024-01-18 11:33:27 +08:00
rpc-multiplex.md Added docs about how to use default commands in async-queue. (#6068) 2023-08-21 22:34:31 +08:00
rpn.md Remove PHPUnit badge for rpn (#6014) 2023-08-11 09:44:28 +08:00
scout.md Update docs and translate. 2021-09-09 09:29:08 +08:00
service-register.md Update docs and translate 2023-01-02 23:32:23 +00:00
session.md Upgrade the minimum php version to 8.0 for http-server. (#4306) 2021-12-01 16:19:47 +08:00
signal.md update signal doc (#6262) 2023-11-07 14:21:06 +08:00
snowflake.md Use Hyperf\Context\ApplicationContext instead of Hyperf\Utils\ApplicationContext. (#5621) 2023-04-11 15:57:32 +08:00
socketio-server.md Release v3.1.4 (#6427) 2023-12-29 09:30:38 +08:00
summary.md Upgrade docs about replacing utils with support (#6425) 2024-01-01 19:52:20 +08:00
support.md Upgrade docs about replacing utils with support (#6425) 2024-01-01 19:52:20 +08:00
swagger.md Added docs about how to change swagger dashboard. (#6659) 2024-04-08 17:06:06 +08:00
task.md Use Hyperf\Coroutine\Coroutine instead of Hyperf\Utils\Coroutine (#5623) 2023-04-12 12:36:10 +08:00
tcp-server.md Release v3.0.21 (#5738) 2023-05-18 10:28:58 +08:00
testing.md Release v3.1.18 (#6679) 2024-04-12 10:50:19 +08:00
tracer.md Release v3.0.36 (#6152) 2023-09-15 14:33:56 +08:00
translation.md Fix translation demo code error. (#6190) 2023-10-08 04:01:41 -05:00
validation.md Release v3.1.16 (#6649) 2024-04-02 10:40:09 +08:00
versions.md Merge remote-tracking branch 'origin/master' into 2.0 2020-06-19 19:10:12 +08:00
view-engine.md Upgrade the minimum php version to 8.0 for http-server. (#4306) 2021-12-01 16:19:47 +08:00
view.md Upgrade the minimum php version to 8.0 for http-server. (#4306) 2021-12-01 16:19:47 +08:00
watcher.md Release v3.1.19 (#6699) 2024-04-18 10:23:24 +08:00
websocket-client.md Upgrade the minimum php version to 8.0 for http-server. (#4306) 2021-12-01 16:19:47 +08:00
websocket-server.md Upgrade Docs: Remove Redundant @var Annotations for Injected Properties (#7134) 2024-10-31 09:50:31 +08:00

3.1 介紹

Hyperf 是一個高性能、高靈活性的漸進式 PHP 協程框架,內置協程服務器及大量常用的組件,性能較傳統基於 PHP-FPM 的框架有質的提升,提供超高性能的同時,也保持着極其靈活的可擴展性,標準組件均基於 PSR 標準 實現,基於強大的依賴注入設計,保證了絕大部分組件或類都是 可替換可複用 的。

框架組件庫除了常見的協程版的 MySQL 客户端Redis 客户端,還為您準備了協程版的 Eloquent ORMWebSocket 服務端及客户端JSON RPC 服務端及客户端gRPC 服務端及客户端Zipkin/Jaeger (OpenTracing) 客户端Guzzle HTTP 客户端Elasticsearch 客户端Consul 客户端ETCD 客户端AMQP 組件Apollo 配置中心阿里雲 ACM 應用配置管理ETCD 配置中心基於令牌桶算法的限流器通用連接池熔斷器Swagger 文檔生成視圖引擎Snowflake 全局 ID 生成器 等組件,省去了自己實現對應協程版本的麻煩。

Hyperf 還提供了 基於 PSR-11 的依賴注入容器註解AOP 面向切面編程基於 PSR-15 的中間件自定義進程基於 PSR-14 的事件管理器Redis/RabbitMQ 消息隊列自動模型緩存基於 PSR-16 的緩存Crontab 秒級定時任務國際化Validation 表單驗證器 等非常便捷的功能,滿足豐富的技術場景和業務場景,開箱即用。

框架初衷

儘管現在基於 PHP 語言開發的框架處於一個百家爭鳴的時代,但仍舊未能看到一個優雅的設計與超高性能的共存的完美框架,亦沒有看到一個真正為 PHP 微服務鋪路的框架,此為 Hyperf 及其團隊成員的初衷,我們將持續投入併為此付出努力,也歡迎你加入我們參與開源建設。

設計理念

Hyperspeed + Flexibility = Hyperf,從名字上我們就將 超高速靈活性 作為 Hyperf 的基因。

  • 對於超高速,我們基於 Swoole 協程並在框架設計上進行大量的優化以確保超高性能的輸出。
  • 對於靈活性,我們基於 Hyperf 強大的依賴注入組件,組件均基於 PSR 標準 的契約和由 Hyperf 定義的契約實現,達到框架內的絕大部分的組件或類都是可替換的。

基於以上的特點Hyperf 將存在豐富的可能性,如實現 Web 服務網關服務分佈式中間件微服務架構遊戲服務器物聯網IOT等。

生產可用

我們為組件進行了大量的單元測試以保證邏輯的正確,同時維護了高質量的文檔,在 Hyperf 正式對外開放之前,便已經過了嚴酷的生產環境的考驗,我們才正式的對外開放該項目,至今,已有大量的大型/中小型互聯網公司在生產環境使用 Hyperf。