Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simps/mqtt
🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
https://github.com/simps/mqtt
mqtt mqtt-client mqtt-protocol mqtt-websocket mqtt3 mqtt5 mqttv5 php swoole websocket
Last synced: 5 days ago
JSON representation
🕹 MQTT Protocol Analysis and Coroutine Client for PHP. Support for 3.1, 3.1.1 and 5.0 versions of the MQTT protocol.
- Host: GitHub
- URL: https://github.com/simps/mqtt
- Owner: simps
- License: apache-2.0
- Created: 2019-07-12T04:38:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-24T06:29:27.000Z (4 months ago)
- Last Synced: 2024-10-29T09:37:10.470Z (about 1 month ago)
- Topics: mqtt, mqtt-client, mqtt-protocol, mqtt-websocket, mqtt3, mqtt5, mqttv5, php, swoole, websocket
- Language: PHP
- Homepage: https://mqtt.simps.io
- Size: 437 KB
- Stars: 358
- Watchers: 11
- Forks: 58
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swoole - simps/mqtt - A coroutine-based MQTT client. It supports MQTT version 3.1, 3.1.1, and 5.0. (Client Packages)
README
[English](./README.md) | 中文
# MQTT 协议解析 & 协程客户端
适用于 PHP 的 MQTT 协议解析和协程客户端。
支持 MQTT 协议 `3.1`、`3.1.1` 和 `5.0` 版本,支持`QoS 0`、`QoS 1`、`QoS 2`。
> 首个支持 MQTT `5.0` 协议的 PHP library。
[![License](https://poser.pugx.org/simps/mqtt/license)](LICENSE)
[![Latest Stable Version](https://poser.pugx.org/simps/mqtt/v)](//packagist.org/packages/simps/mqtt)
[![Total Downloads](https://poser.pugx.org/simps/mqtt/downloads)](//packagist.org/packages/simps/mqtt)
[![PHP Version](https://img.shields.io/badge/php-%3E=7.1-blue.svg)](https://www.php.net)
[![Swoole Version](https://img.shields.io/badge/swoole-%3E=4.4.20-blue.svg)](https://github.com/swoole/swoole-src)[![GitHub Actions](https://github.com/simps/mqtt/workflows/PHPUnit%20for%20MQTT/badge.svg)](https://github.com/simps/mqtt/actions)
[![Static Code Analysis](https://github.com/simps/mqtt/actions/workflows/phpstan.yml/badge.svg)](https://github.com/simps/mqtt/actions/workflows/phpstan.yml)
[![Gitee Star](https://gitee.com/phpmqtt/mqtt/badge/star.svg?theme=dark)](https://gitee.com/phpmqtt/mqtt/stargazers)
[![MQTT 交流群](https://img.shields.io/badge/QQ%E7%BE%A4-983679945-orange)](https://go.qq52o.me/qm/mqtt)## 安装
```bash
composer require simps/mqtt
```## 文档
[mqtt.simps.io](https://mqtt.simps.io) | [MQTT 3.1.1](http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html) | [MQTT 5.0](https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html)
## 示例
参考 [examples](./examples) 目录