PHPackages                             mcfish/libmqtt - 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. mcfish/libmqtt

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

mcfish/libmqtt
==============

MQTT 3.1.1 library for PHP with TLS support

1.0.3(7y ago)1830.8k↓33.3%8[1 PRs](https://github.com/McFizh/libMQTT/pulls)MITPHP

Since Jan 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/McFizh/libMQTT)[ Packagist](https://packagist.org/packages/mcfish/libmqtt)[ RSS](/packages/mcfish-libmqtt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (11)Used By (0)

libMQTT
=======

[](#libmqtt)

[![Build Status](https://camo.githubusercontent.com/fbbd373383ccef38bffae2cf6472f5f5f8c141dbc1349d90e9f05118667232e1/68747470733a2f2f7472617669732d63692e6f72672f4d6346697a682f6c69624d5154542e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/McFizh/libMQTT)

Simple MQTT library for PHP, with support for MQTT version 3.1.1, TLS. Library also partially implements QoS 1 messaging.

Library is a rewrite of phpMQTT library, original can be found here:

Vagrant
-------

[](#vagrant)

Repo includes vagrant configuration, which creates minimal testing/development environment for the library.

Environment is based on Centos 7, and contains PHP 5.6 + RabbitMQ + composer. To try it out, type:

- vagrant up
- vagrant ssh
- cd libMQTT

Now to run the actual PHP unit tests:

- ./tests/travis.sh

PHP requirements
----------------

[](#php-requirements)

Library works with:

- PHP &gt;= 5.4
- HHVM &gt;= 3.9

---

Pekka Harjamäki &lt; mcfizh@gmailcom &gt;

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 87.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~327 days

Recently: every ~527 days

Total

9

Last Release

1156d ago

Major Versions

0.3.0 → 1.0.02017-06-10

1.0.3 → v2.0.x-dev2023-03-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/488047?v=4)[Hirotaka Ata](/maintainers/McFish)[@mcfish](https://github.com/mcfish)

---

Top Contributors

[![McFizh](https://avatars.githubusercontent.com/u/3303997?v=4)](https://github.com/McFizh "McFizh (43 commits)")[![pierrejochem](https://avatars.githubusercontent.com/u/9192953?v=4)](https://github.com/pierrejochem "pierrejochem (3 commits)")[![unreal4u](https://avatars.githubusercontent.com/u/194999?v=4)](https://github.com/unreal4u "unreal4u (2 commits)")[![SkUrRiEr](https://avatars.githubusercontent.com/u/96673?v=4)](https://github.com/SkUrRiEr "SkUrRiEr (1 commits)")

---

Tags

phpmqtt

### Embed Badge

![Health badge](/badges/mcfish-libmqtt/health.svg)

```
[![Health](https://phpackages.com/badges/mcfish-libmqtt/health.svg)](https://phpackages.com/packages/mcfish-libmqtt)
```

###  Alternatives

[simps/mqtt

MQTT Protocol Analysis and Coroutine Client for PHP

39351.6k9](/packages/simps-mqtt)[workerman/mqtt

22450.3k12](/packages/workerman-mqtt)[openswoole/core

Openswoole core library

181.1M32](/packages/openswoole-core)[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
