Skip to content

v1.3.0

Choose a tag to compare

@erikwang2013 erikwang2013 released this 29 Oct 16:05
· 24 commits to main since this release

messaging-php v1.3.0

P2 云服务驱动上线,全部纯 PHP 实现,不依赖 AWS/GCP/Azure SDK。

新增驱动

  • AWS SQS:长轮询、可见性超时、批量发送、FIFO key/group、延迟消息
  • AWS SNS:仅发布,MessageAttributes
  • AWS Kinesis:分片读取、游标 checkpoint、批量 PutRecords
  • Google Cloud Pub/Sub:REST publish/pull/ack/modifyAckDeadline、服务账号 JWT、ordering key
  • Azure Service Bus:REST peek-lock、complete/abandon、ScheduledEnqueueTimeUtc、SAS

基础设施

  • 共享 AWS SigV4 签名器,使用官方测试向量验证
  • GCP RS256 JWT + token 缓存;Azure SAS HMAC-SHA256 + 缓存
  • Manager 内置注册:sqs、sns、kinesis、gcp-pubsub、azure-service-bus
  • docker-compose 增加 AWS mock 与 GCP Pub/Sub emulator profile;集成 CI 增加 cloud 任务

验证

  • PHPUnit 全量通过;PHPStan level 5;PHP-CS-Fixer 无待修复
  • GitHub Actions PHP 8.0–8.5 全绿
  • 云驱动契约测试基于脚本化 HTTP 服务;真实云需自备凭据
  • 说明:LocalStack 最新镜像要求 license,AWS 集成测试默认使用可配置 endpoint

限制

  • SNS 仅发布;Kinesis checkpoint 仅内存 + 可选回调;GCP Pub/Sub 为单条 REST pull;Azure Service Bus 不支持 AMQP、sessions、事务与批量发送
  • 云实体(队列/主题/订阅/流)需预先创建