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
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> |
||
---|---|---|
.. | ||
changelog | ||
component-guide | ||
db | ||
eco | ||
imgs | ||
middleware | ||
quick-start | ||
sdks | ||
tutorial | ||
upgrade | ||
amqp.md | ||
annotation.md | ||
aop.md | ||
async-queue.md | ||
awesome-components.md | ||
cache.md | ||
changelog-v1.0.md | ||
changelog-v1.1.md | ||
changelog-v2.0.md | ||
changelog-v2.1.md | ||
changelog-v2.2.md | ||
changelog-v3.0.md | ||
circuit-breaker.md | ||
command.md | ||
communication.md | ||
config-center.md | ||
config.md | ||
constants.md | ||
consul.md | ||
contribute.md | ||
controller.md | ||
coroutine-server.md | ||
coroutine.md | ||
crontab.md | ||
dag.md | ||
devtool.md | ||
di.md | ||
distributed-transaction.md | ||
donate.md | ||
elasticsearch.md | ||
enterprise-service.md | ||
etcd.md | ||
event.md | ||
exception-handler.md | ||
filesystem.md | ||
graphql.md | ||
grpc.md | ||
guzzle.md | ||
jet.md | ||
json-rpc.md | ||
kafka.md | ||
lifecycle.md | ||
logger.md | ||
memory.md | ||
metric.md | ||
microservice.md | ||
nacos.md | ||
nano.md | ||
nats.md | ||
nsq.md | ||
paginator.md | ||
phar.md | ||
pool.md | ||
process.md | ||
rate-limit.md | ||
reactive-x.md | ||
README.md | ||
redis.md | ||
release-planning.md | ||
request.md | ||
response.md | ||
retry.md | ||
router.md | ||
rpc-multiplex.md | ||
rpn.md | ||
scout.md | ||
service-register.md | ||
session.md | ||
signal.md | ||
snowflake.md | ||
socketio-server.md | ||
summary.md | ||
support.md | ||
swagger.md | ||
task.md | ||
tcp-server.md | ||
testing.md | ||
tracer.md | ||
translation.md | ||
validation.md | ||
versions.md | ||
view-engine.md | ||
view.md | ||
watcher.md | ||
websocket-client.md | ||
websocket-server.md |
3.1 介紹
Hyperf 是一個高性能、高靈活性的漸進式 PHP 協程框架,內置協程服務器及大量常用的組件,性能較傳統基於 PHP-FPM
的框架有質的提升,提供超高性能的同時,也保持着極其靈活的可擴展性,標準組件均基於 PSR 標準 實現,基於強大的依賴注入設計,保證了絕大部分組件或類都是 可替換
與 可複用
的。
框架組件庫除了常見的協程版的 MySQL 客户端
、Redis 客户端
,還為您準備了協程版的 Eloquent ORM
、WebSocket 服務端及客户端
、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。