PHPackages                             janfish/zhoutian-stomp-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. janfish/zhoutian-stomp-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

janfish/zhoutian-stomp-client
=============================

A PHP WebSocket STOMP client for real-time messaging

016PHP

Since Dec 31Pushed 5mo agoCompare

[ Source](https://github.com/zeng444/zhoutian-stomp-client)[ Packagist](https://packagist.org/packages/janfish/zhoutian-stomp-client)[ RSS](/packages/janfish-zhoutian-stomp-client/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

WebSocket STOMP 客户端插件
=====================

[](#websocket-stomp-客户端插件)

一个基于 PHP 的 WebSocket STOMP 客户端插件，专为实时告警通知系统设计。

主要功能
----

[](#主要功能)

- **WebSocket 连接管理**: 自动重连机制，确保连接稳定
- **STOMP 协议支持**: 完整的 STOMP 1.2 协议实现
- **告警消息处理**: 专门针对告警通知的消息格式处理
- **异步事件驱动**: 基于 ReactPHP，支持高并发处理

安装
--

[](#安装)

```
composer require janfish/websocket-stomp
```

快速开始 - 接收通知
-----------

[](#快速开始---接收通知)

### 1. 基础使用（接收告警通知）

[](#1-基础使用接收告警通知)

```
