# mqtt **Repository Path**: ivanpp/mqtt ## Basic Information - **Project Name**: mqtt - **Description**: 🕹 适用于 PHP 的 MQTT 协议解析和协程客户端。支持 MQTT 协议 3.1、3.1.1 和 5.0 版本,支持QoS 0、QoS 1、QoS 2。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://mqtt.simps.io - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 32 - **Created**: 2022-02-06 - **Last Updated**: 2022-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README English | [中文](./README-CN.md) # MQTT Protocol Analysis & Coroutine Client MQTT Protocol Analysis and Coroutine Client for PHP. Support for MQTT protocol versions `3.1`, `3.1.1` and `5.0`. Support for `QoS 0`, `QoS 1`, `QoS 2`. > The first PHP library to support the MQTT `5.0` protocol. [![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) [![Simps 交流群](https://img.shields.io/badge/QQ%E7%BE%A4-983679945-orange)](https://shang.qq.com/wpa/qunwpa?idkey=587be6cdd66b437f2306b1a6d7263fd8096b70ef1db716a259485219f28d41a3) ## Install ```bash composer require simps/mqtt ``` ## Documentation [mqtt.simps.io](https://mqtt.simps.io/#/en/) | [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 see [examples](./examples)