PHPackages                             luzhuqun/laravel-mqtt-publish - 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. luzhuqun/laravel-mqtt-publish

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

luzhuqun/laravel-mqtt-publish
=============================

A simple Laravel 5 mqtt publisher

219.8k10[3 issues](https://github.com/luzhuqun/laravel-mqtt-publish/issues)[4 PRs](https://github.com/luzhuqun/laravel-mqtt-publish/pulls)PHP

Since May 22Pushed 7y ago2 watchersCompare

[ Source](https://github.com/luzhuqun/laravel-mqtt-publish)[ Packagist](https://packagist.org/packages/luzhuqun/laravel-mqtt-publish)[ RSS](/packages/luzhuqun-laravel-mqtt-publish/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Mqtt Publisher
======================

[](#laravel-mqtt-publisher)

Mqtt is used to publish messages from backend to andriod.

### Getting start

[](#getting-start)

`composer require luzhuqun/laravel-mqtt-publish`

### How to use

[](#how-to-use)

```
use Lzq\Mqtt\SamMessage;
use Lzq\Mqtt\SamConnection;

$conn = new SAMConnection();//create a new connection object

$conn->connect('mqtt', array('SAM_HOST' => '192.168.10.147', 'SAM_PORT' => '1883'));//start initialise the connection

$msgCpu = new SAMMessage('hehe');//create a new MQTT message with the output of the shell command as the body

$conn->send('topic://'.'tokudu/ab7867d9fd60db65', $msgCpu);//send the message on the topic cpu

$conn->disconnect();

```

### Learn more

[](#learn-more)

A complet mqtt service incluede publisher, service and subscriber.

##### service

[](#service)

[mosquitto](https://github.com/eclipse/mosquitto)

##### subscriber

[](#subscriber)

[AndroidPushNotificationsDemo](https://github.com/tokudu/AndroidPushNotificationsDemo)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ade5e6de0c2bae20b79831232de0e89969097bf8eaec5d8e3c04c512d9a9e23d?d=identicon)[luzhuqun](/maintainers/luzhuqun)

---

Top Contributors

[![AIRootUser](https://avatars.githubusercontent.com/u/22089688?v=4)](https://github.com/AIRootUser "AIRootUser (14 commits)")

---

Tags

laravelmqttphp

### Embed Badge

![Health badge](/badges/luzhuqun-laravel-mqtt-publish/health.svg)

```
[![Health](https://phpackages.com/badges/luzhuqun-laravel-mqtt-publish/health.svg)](https://phpackages.com/packages/luzhuqun-laravel-mqtt-publish)
```

PHPackages © 2026

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