hyperf/doc/zh
2019-11-29 09:08:03 +08:00
..
component-guide Update configprovider.md (#878) 2019-11-06 17:45:30 +08:00
db Merge pull request #928 from wuwu123/model-cache-batch-del 2019-11-13 10:38:32 +08:00
imgs Add sponsor logo 2019-10-11 14:01:27 +08:00
middleware format with refined rules 2019-11-12 19:49:54 +08:00
quick-start format with refined rules 2019-11-12 19:49:54 +08:00
sdks Update wechat.md (#790) 2019-10-26 16:03:37 +08:00
tutorial format with refined rules 2019-11-12 19:49:54 +08:00
upgrade Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
amqp.md format with refined rules 2019-11-12 19:49:54 +08:00
annotation.md format with refined rules 2019-11-12 19:49:54 +08:00
aop.md Update clean runtime shell in doc. 2019-10-30 16:38:25 +08:00
async-queue.md format with refined rules 2019-11-12 19:49:54 +08:00
awesome-components.md format with refined rules 2019-11-12 19:49:54 +08:00
cache.md format with refined rules 2019-11-12 19:49:54 +08:00
changelog.md format with refined rules 2019-11-12 19:49:54 +08:00
circuit-breaker.md format with refined rules 2019-11-12 19:49:54 +08:00
command.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
communication.md Update communication.md 2019-09-02 17:43:46 +08:00
config-center.md format with refined rules 2019-11-12 19:49:54 +08:00
config.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
constants.md Added constants doc. 2019-07-31 16:17:16 +08:00
consul.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
controller.md Update controller.md 2019-10-23 11:45:07 +08:00
coroutine.md format with refined rules 2019-11-12 19:49:54 +08:00
crontab.md Merge branch 'master' into formatter 2019-11-13 09:46:30 +08:00
devtool.md Update configprovider.md (#878) 2019-11-06 17:45:30 +08:00
di.md Merge branch 'master' of https://github.com/Reasno/hyperf into pr/948 2019-11-29 09:08:03 +08:00
donate.md Revert "Format all markdowns" 2019-11-12 19:41:17 +08:00
elasticsearch.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
etcd.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
event.md format with refined rules 2019-11-12 19:49:54 +08:00
exception-handler.md Update exception-handler.md 2019-11-14 01:44:09 +08:00
graphql.md Update graphql.md 2019-08-15 14:17:03 +08:00
grpc.md fix spell mistake 2019-08-09 15:16:27 +08:00
guzzle.md format with refined rules 2019-11-12 19:49:54 +08:00
json-rpc.md format with refined rules 2019-11-12 19:49:54 +08:00
lifecycle.md Revert "Format all markdowns" 2019-11-12 19:41:17 +08:00
logger.md Update logger.md (#896) 2019-11-08 11:22:09 +08:00
memory.md Moved all documentation to the doc folder 2019-07-08 19:47:41 +08:00
metric.md Merge branch 'master' into formatter 2019-11-13 09:46:30 +08:00
microservice.md Revert "Format all markdowns" 2019-11-12 19:41:17 +08:00
nats.md format with refined rules 2019-11-12 19:49:54 +08:00
paginator.md format with refined rules 2019-11-12 19:49:54 +08:00
pool.md fix typo (#808) 2019-10-29 16:11:25 +08:00
process.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
rate-limit.md format with refined rules 2019-11-12 19:49:54 +08:00
README.md format with refined rules 2019-11-12 19:49:54 +08:00
redis.md format with refined rules 2019-11-12 19:49:54 +08:00
request.md format with refined rules 2019-11-12 19:49:54 +08:00
response.md Update response.md 2019-10-31 18:12:49 +08:00
router.md format with refined rules 2019-11-12 19:49:54 +08:00
service-register.md Update service-register.md (#893) 2019-11-08 08:41:22 +08:00
snowflake.md format with refined rules 2019-11-12 19:49:54 +08:00
summary.md format with refined rules 2019-11-12 19:49:54 +08:00
swoole-tracker.md format with refined rules 2019-11-12 19:49:54 +08:00
task.md format with refined rules 2019-11-12 19:49:54 +08:00
testing.md Update testing.md 2019-11-14 01:14:29 +08:00
tracer.md format with refined rules 2019-11-12 19:49:54 +08:00
translation.md Merge pull request #932 from chunhei2008/fix/929 2019-11-13 10:14:39 +08:00
utils.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
validation.md format with refined rules 2019-11-12 19:49:54 +08:00
view.md update view doc 2019-11-13 10:16:40 +08:00
websocket-client.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00
websocket-server.md Renamed hyperf-cloud to hyperf. (#754) 2019-10-22 09:35:48 +08:00

介绍

Hyperf 是基于 Swoole 4.4+ 实现的高性能、高灵活性的 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 TrackerBlade 和 Smarty 视图引擎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。