hyperf/docs/zh-cn
李铭昕 7c601604a2
v2.0.20 (#2830)
* v2.0.20

* Update changelog.md
2020-11-23 09:18:44 +08:00
..
component-guide Added document about how to create your component. (#2348) 2020-08-25 09:29:42 +08:00
db fix typo (#2843) 2020-11-21 10:15:35 +08:00
imgs 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
middleware fix typo (#2795) 2020-11-12 11:38:24 +08:00
quick-start fix typo and ambiguous expression (#2569) 2020-09-23 10:31:52 +08:00
sdks change set to rebind 2020-08-12 21:44:43 +08:00
tutorial Update docker-swarm.md (#2531) 2020-09-17 17:09:47 +08:00
upgrade Updated upgrade 2.0 (#2102) 2020-07-13 09:07:26 +08:00
amqp.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
annotation.md Fixed example for class_map. (#2400) 2020-09-01 09:56:35 +08:00
aop.md v2.0.4 (#2185) 2020-07-27 15:52:51 +08:00
async-queue.md update doc (#2769) 2020-11-05 16:35:24 +08:00
awesome-components.md Added donjan-deng/hyperf-casbin into awesome-components. (#2829) 2020-11-19 17:12:49 +08:00
cache.md Fixed doc. (#2293) 2020-08-13 19:37:41 +08:00
changelog.md v2.0.20 (#2830) 2020-11-23 09:18:44 +08:00
circuit-breaker.md 修改错别字 2020-06-23 23:40:13 +08:00
command.md Added cases of command into phpunit.xml 2020-08-02 13:56:40 +08:00
communication.md updated communication.md (#2763) 2020-11-05 10:53:28 +08:00
config-center.md fix typo 2020-07-21 17:45:08 +08:00
config.md docs: update webscoket server (#2205) 2020-07-29 18:37:33 +08:00
constants.md fix typo 2020-07-21 17:45:08 +08:00
consul.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
contribute.md docs(contribute): update pull request url 2020-06-26 19:20:17 +08:00
controller.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
coroutine.md update max_coroutine (#2685) 2020-10-19 18:47:35 +08:00
crontab.md Fixed crontab does not works when using coroutine style server. (#2590) 2020-09-27 16:25:56 +08:00
devtool.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
di.md update doc (#2769) 2020-11-05 16:35:24 +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 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
etcd.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
event.md Optimized code for watcher. (#2368) 2020-08-28 09:54:30 +08:00
exception-handler.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
filesystem.md Added flysystem-cos for hyperf/filesystem (#2097) 2020-07-13 19:52:01 +08:00
graphql.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
grpc.md Fixed crontab does not works when using coroutine style server. (#2590) 2020-09-27 16:25:56 +08:00
guzzle.md Improve guzzle set default handler, use Hyperf\Guzzle\CoroutineHandle… (#2243) 2020-08-06 17:07:22 +08:00
jet.md Update jet.md 2020-08-10 01:54:13 +08:00
json-rpc.md fix typo 2020-06-20 19:55:30 +08:00
lifecycle.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
logger.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
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 use cdn for grafana.json 2020-07-13 14:49:49 +08:00
microservice.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
nacos.md Update nacos.md 2020-08-09 15:30:20 +08:00
nano.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
nats.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
nsq.md Specifice the API is NSQD API 2020-08-17 02:50:47 +08:00
paginator.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
pool.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
process.md Update document (#2372) 2020-08-28 18:13:38 +08:00
rate-limit.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
reactive-x.md v2.0.3 (#2136) 2020-07-20 15:17:27 +08:00
README.md Update 2020-06-22 10:14:19 +08:00
redis.md fix typo 2020-09-16 14:07:18 +08:00
release-planning.md Update release-planning.md 2020-07-10 13:56:28 +08:00
request.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
response.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
retry.md Optimized the fallback of FallbackRetryPolicy which support class@method (#2471) 2020-09-09 17:05:18 +08:00
router.md remove ./ 2020-06-25 10:54:10 +08:00
scout.md Update scout.md (#2645) 2020-10-13 07:26:47 +08:00
service-register.md remove ./ 2020-06-25 10:54:10 +08:00
session.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
signal.md Optimized process which stop friendly in coroutine server. (#2359) 2020-08-27 11:43:39 +08:00
snowflake.md Added usage for trait snowflake. (#2838) 2020-11-20 14:13:56 +08:00
socketio-server.md fix title (#2481) 2020-09-11 10:33:53 +08:00
summary.md Added view-engine component. (#2737) 2020-10-30 16:33:16 +08:00
swoole-tracker.md Add Memory Leak Detection Middleware to Swoole Tracker (#2747) 2020-11-01 18:16:44 +08:00
task.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
tcp-server.md Added document for tcp-server. (#2228) 2020-08-02 13:45:08 +08:00
testing.md Update testing.md (#2499) 2020-09-13 11:31:47 +08:00
tracer.md Support json-rpc for tracer component. (#2625) 2020-10-31 20:42:41 +08:00
translation.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
utils.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
validation.md fix typo (#2326) 2020-08-21 10:23:39 +08:00
versions.md Merge remote-tracking branch 'origin/master' into 2.0 2020-06-19 19:10:12 +08:00
view-engine.md Added view-engine component. (#2737) 2020-10-30 16:33:16 +08:00
view.md Docs: Use hyperf/view-engine instead of duncan3dc/blade for blade engine (#2818) 2020-11-17 15:52:01 +08:00
watcher.md Added Hyperf\Watcher\Driver\FindDriver for hyperf/watcher. (#2162) 2020-07-23 15:09:25 +08:00
websocket-client.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
websocket-server.md fix typo (#2215) 2020-07-30 15:22:41 +08:00

2.0 介绍

Hyperf 是基于 Swoole 4.5+ 实现的高性能、高灵活性的 PHP 协程框架,内置协程服务器及大量常用的组件,性能较传统基于 PHP-FPM 的框架有质的提升,提供超高性能的同时,也保持着极其灵活的可扩展性,标准组件均基于 PSR 标准 实现,基于强大的依赖注入设计,保证了绝大部分组件或类都是 可替换可复用 的。

框架组件库除了常见的协程版的 MySQL 客户端Redis 客户端,还为您准备了协程版的 Eloquent ORMWebSocket 服务端及客户端JSON RPC 服务端及客户端GRPC 服务端及客户端Zipkin/Jaeger (OpenTracing) 客户端Guzzle HTTP 客户端Elasticsearch 客户端Consul 客户端ETCD 客户端AMQP 组件Apollo 配置中心阿里云 ACM 应用配置管理ETCD 配置中心基于令牌桶算法的限流器通用连接池熔断器Swagger 文档生成Swoole Tracker视图引擎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。