Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Net Mqtt Laravel Package

binsoul/net-mqtt

A lightweight PHP MQTT client for connecting to MQTT brokers, publishing messages, and subscribing to topics. Supports QoS levels, retained messages, clean sessions, keepalive, and configurable client options for IoT and real-time PHP applications.

Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for device/messaging transport. This package gives us an MQTT 3.1 / 3.1.1 client in pure PHP — it does not include a broker. The real decision it informs is "do we stand up a broker (Mosquitto, EMQX, HiveMQ, AWS IoT Core) and speak MQTT from Laravel, or do we buy a managed messaging/IoT platform?" This package is the cheapest possible way to answer that question with a spike instead of a contract.
  • Feature discovery for real-time and event-driven surfaces. It makes it practical to prototype publish/subscribe features without new infrastructure skills: device telemetry ingestion, presence/heartbeat tracking, fan-out of domain events to workers, low-bandwidth notification delivery to mobile or embedded clients. That lets us size a feature and validate demand before committing roadmap capacity.
  • Architecture roadmap: decoupling services via a broker. If we are considering moving from synchronous HTTP calls or database polling to a pub/sub backbone, this is a low-cost way to demo the pattern end to end inside the stack we already run.
  • Scope constraint we must accept up front. MQTT 5.0 features (shared subscriptions, message expiry, reason codes, user properties) are out of reach here. If the roadmap depends on those, this package is a dead end and that should be decided now, not after integration.
  • Sourcing and risk decision. Low stars (28), a narrow maintainer base, and a recent release (2026-01-20) tell a mixed story: it is not abandoned, but it is not a de-risked dependency either. That is a decision input for "prototype only" vs. "production dependency."

When to Consider This Package

Consider it when:

  • PHP/Laravel is already the platform of record and the team wants an MQTT client in-process, with no new language runtime, sidecar, or SDK.
  • The need is a client only — a broker already exists or is being selected separately.
  • Workloads are low-to-moderate volume, internal, or prototype-stage, where a small MIT-licensed dependency with no vendor lock-in is the right trade.
  • The broker fleet is MQTT 3.1.1 and there is no near-term requirement for MQTT 5.
  • Connections can live in long-running processes (queue workers, Octane/Swoole/ReactPHP-style runtimes) rather than per-request PHP-FPM lifecycles.
  • The team is willing to own the dependency: pin versions, read the source, and wrap it behind our own interface.

Look elsewhere when:

  • MQTT 5.0 is required, or we need protocol-level features this implementation does not cover.
  • Throughput or connection count is high, or connections must persist inside a request/response web tier — a coroutine-native client (e.g. Swoole-based) or a dedicated messaging service will be the better fit.
  • We need a support contract, SLA, or a security-response commitment. A 28-star package cannot provide that; a managed broker plus a mainstream client can.
  • Community depth matters for hiring, examples, and long-term maintenance — a more widely adopted PHP MQTT client or a managed cloud IoT endpoint should be evaluated in parallel.
  • Reliability guarantees are product-critical (at-least-once/exactly-once semantics under load, offline queueing, backpressure). Verify these against the source before committing; if unproven, price in a re-implementation.

How to Pitch It (Stakeholders)

For executives: This is a small, MIT-licensed PHP library that lets our existing Laravel codebase talk MQTT — the standard lightweight protocol for devices, sensors, and low-bandwidth messaging. It costs nothing to license, requires no new platform, and lets us test a real-time/IoT feature in days rather than quarters. The honest risk is maturity: it is a small-project dependency with limited community, no vendor support, and no MQTT 5.0. My recommendation is to treat it as a time-boxed evaluation and prototype vehicle, not a production commitment. We isolate it behind a thin internal adapter so a swap — to a more established client or a managed broker — is a contained change, not a rewrite.

For engineering: Pure-PHP MQTT 3.1/3.1.1 client, MIT, recent release. It does the client job only; we still choose and operate a broker. Two integration realities to plan for: (1) MQTT connections want to be long-lived, which does not fit PHP-FPM per-request execution — design around queue workers or a coroutine runtime; (2) the project is small, so pin the version, read the connection/reconnect and QoS paths before we depend on them, and write our own reconnection, backoff, and error-surfacing logic rather than assuming it. Wrap it in an interface, add contract tests against a local Mosquitto broker, and keep the surface area narrow so migration stays cheap.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc