PHPackages                             summergeorge/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. summergeorge/laravel-mqttx

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

summergeorge/laravel-mqttx
==========================

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

1.1.0(5y ago)046MITPHPPHP &gt;=7.0

Since Sep 4Pushed 4y agoCompare

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

READMEChangelogDependencies (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

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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

Unknown

Total

1

Last Release

2077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e2c1807b7fc83556031adec9a22d2ab7252c28f68dad87681e1c53bd437a749?d=identicon)[summergeorge](/maintainers/summergeorge)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[riverskies/laravel-vue-component

Helper package to aid usage of Vue Components within Laravel projects

201.2k](/packages/riverskies-laravel-vue-component)

PHPackages © 2026

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