Download the PHP package hyperf-apex/apex without Composer

On this page you can find all versions of the php package hyperf-apex/apex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package apex

Hyperf Apex

CI Latest Version PHP

企业级 Hyperf 3.2 + Swoole 6.2 通用组件库(Monorepo 架构)。

本仓库采用组件化设计,既支持按需引入单一功能包(避免非必要依赖膨胀),也支持通过元包 hyperf-apex/apex 一键全量引入。


模块清单与包规划(packages/)

组件包名 目录 职责说明 外部核心依赖
hyperf-apex/core packages/core 通用基础底座(DTO 参数水合、规则校验、统一响应、声明式权限/限流/幂等注解、统一异常、日志审计、Fail-Fast 启动检查) 仅 Hyperf 基础组件,零外设冗余依赖
hyperf-apex/apidoc packages/apidoc OpenAPI 契约引擎(基于 DTO 反射的无侵入 OpenAPI 3.1 生成) swagger-php、symfony/yaml
hyperf-apex/apidoc-apifox packages/apidoc-apifox 长连接契约导出(把 #[WsGateway] / #[WsRoute] 声明渲染成 Apifox 原生 webSocketCollection) hyperf-apex/apidoc、hyperf-apex/websocket
hyperf-apex/websocket packages/websocket 长连接网关(多端 WebSocket 协议封装、跨 Worker 会话存储、连接索引用 Swoole Table、房间索引可选 Swoole Table 或 Redis) hyperf/websocket-server;hyperf/redis 可选(房间索引用 Redis 时需要)
hyperf-apex/reliability packages/reliability 高可用套件(Redis 分布式限流与限流中间件、接口幂等防重与幂等中间件、事务发件箱 Outbox、企微多渠道通知、出站 HTTP 客户端) hyperf/redis、hyperf/database、hyperf/guzzle
hyperf-apex/metrics packages/metrics Prometheus 监控(基于 Swoole Table 共享内存的低基数运行指标、请求耗时拦截与大屏) hyperf/memory(Swoole Table)
hyperf-apex/wecom packages/wecom 企业微信(多企业配置与 alias 路由、进程内共用 EasyWeChat 应用、access_token 缓存与自愈、网页授权/扫码登录) w7corp/easywechat、hyperf/cache
hyperf-apex/apex 根目录元包 全家桶元包(Metapackage)(聚合依赖上述全部 7 个独立包,开箱即用) 聚合所有子包

核心设计特性


接入方式

方式 1:按需引入(推荐,轻量无污染)

根据项目的实际业务形态,只安装所需的组件包:

方式 2:全量引入(全家桶)


配置文件发布(vendor:publish)

每个包均提供独立的配置发布 ID:


日志通道

组件按用途分流日志,会优先使用下面这些通道名(Hyperf 的 logger.channels 配置):

通道 用途
error 异常与错误:AppExceptionHandler、请求异常快照、Outbox 投递、WebSocket
shared 限流:RateLimiter、RateLimitMiddleware
outbound 第三方出站调用:OutboundHttpClient、企业微信组件(logger 名 wecom)
sql SQL 日志:DbQueryExecutedListener(记录量级由 sql_log.full / slow_ms / writes 控制)
access 访问日志:RequestTimingMiddleware(与 access_log 配置配套)

这些通道名不在 Hyperf 骨架的默认配置里,所以有两件事要知道:


WebSocket 网关(hyperf-apex/websocket)

完整说明(运行前置、声明入口与事件、鉴权、推送、协议与内置事件、全部配置项)见 packages/websocket/README.md。

要点:网关默认强制单 Worker(协程服务器下 Sender 只在本 Worker 内投递,多 Worker 会静默丢推送, 确实只收不发时用 websocket.allow_multi_worker=true 显式接受);推送不承诺可靠投递; 任何业务错误都只回错误信封、不断开连接。


开发与质检规范


关于本仓库的发布方式

本仓库是 Monorepo,对外的 7 个包由两条路径发布:

Composer 包名 发布来源
hyperf-apex/core、apidoc、apidoc-apifox、websocket、reliability、metrics、wecom 在 master 打 vX.Y.Z tag 后,由 .github/workflows/split.yml 拆分并推送到 lbg-sys/hyperf-apex-{包名} 只读仓,Packagist 从只读仓索引版本
hyperf-apex/apex(元包) 直接由本仓库 lbg-sys/hyperf-apex 发布;packages/、test/ 等已标记 export-ignore,dist 包只含 composer.json 与 LICENSE

发布流程:更新 CHANGELOG.md → 在 master 上打 git tag -a vX.Y.Z -m "chore(release): vX.Y.Z" → git push origin vX.Y.Z。


All versions of apex with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
hyperf-apex/core Version ^0.1
hyperf-apex/apidoc Version ^0.1
hyperf-apex/apidoc-apifox Version ^0.1
hyperf-apex/websocket Version ^0.1
hyperf-apex/reliability Version ^0.1
hyperf-apex/metrics Version ^0.1
hyperf-apex/wecom Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hyperf-apex/apex contains the following files

Loading the files please wait ...