PHPackages                             jzzoo/laravel-mqttx - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jzzoo/laravel-mqttx

Abandoned → [jzzoo/laravel-mqttx](/?search=jzzoo%2Flaravel-mqttx)Library[Utility &amp; Helpers](/categories/utility)

jzzoo/laravel-mqttx
===================

A simple PHP Laravel framework MQTT library, very convenient to use

1.1.1(4y ago)32212[2 issues](https://github.com/jzzoo/laravel-mqttx/issues)MITPHPPHP &gt;=7.0

Since Sep 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jzzoo/laravel-mqttx)[ Packagist](https://packagist.org/packages/jzzoo/laravel-mqttx)[ RSS](/packages/jzzoo-laravel-mqttx/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

laravel-mqttx
=============

[](#laravel-mqttx)

A simple Laravel MQTT client provides Publish/Subscribe methods.

Source code is mainly based on [phpMQTT](https://github.com/bluerhinos/phpMQTT).

Once the configuration is complete, it is ready to use.

install
-------

[](#install)

```
$ composer require jzzoo/laravel-mqttx -vvv
$ php artisan vendor:publish
```

config
------

[](#config)

config/mqttx.php

```
return [
    'host'     => env('mqtt_host','127.0.0.1'),
    'password' => env('mqtt_password',''),
    'username' => env('mqtt_username',''),
    'certfile' => env('mqtt_cert_file',''),
    'port'     => env('mqtt_port','1883'),
    'debug'    => env('mqtt_debug',false),
    'qos'      => env('mqtt_qos', 0),
    'retain'   => env('mqtt_retain', 0)
];
```

example:
--------

[](#example)

```
$mqtt = new Mqttx();

// Post news to test/topic topic
$mqtt->Publish('test/topic', sprintf("mqtt message: %d", mt_rand(10,9999)));

// Subscribe to test/topic topic
$mqtt->Subscribe('test/topic', function ($topic, $message) {
    dump($topic);
    dump($message);
});
```

If **Debug** is turned on and **Publish** is called on the browser, you can suppress the output using **ob\_get\_clean()**.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~283 days

Total

2

Last Release

1793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a6e32f3106fefb21ac51058a027b539bab01ef1a4275900de8e6073e33faa4f?d=identicon)[Mason613](/maintainers/Mason613)

---

Top Contributors

[![jzzoo](https://avatars.githubusercontent.com/u/40679434?v=4)](https://github.com/jzzoo "jzzoo (11 commits)")

### Embed Badge

![Health badge](/badges/jzzoo-laravel-mqttx/health.svg)

```
[![Health](https://phpackages.com/badges/jzzoo-laravel-mqttx/health.svg)](https://phpackages.com/packages/jzzoo-laravel-mqttx)
```

###  Alternatives

[tareq1988/wordpress-settings-api-class

WordPress settings API Abstraction Class

46611.1k3](/packages/tareq1988-wordpress-settings-api-class)

PHPackages © 2026

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