rabbitevents/protobuf
最新稳定版本:v0.0.2
Composer 安装命令:
composer require rabbitevents/protobuf
包简介
Protobuf extension for RabbitEvents
README 文档
README
This extension provides Protocol Buffers support for RabbitEvents.
Installation
composer require rabbitevents/protobuf
Usage
The extension automatically registers ProtobufSerializer.
When you publish an event with a Google Protobuf Message object as the payload, strict typing ensures it is handled by the ProtobufSerializer.
$message = new MyProtobufMessage(); $message->setSomeField('value'); RabbitEvents::publish('my.event', $message);
The system detects the Protobuf message and uses the correct Content-Type (application/x-protobuf).
Examples
Examples are available in the ./examples directory.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-06