simps/mqtt
simps/mqtt is a PHP MQTT client supporting MQTT 3.1, 3.1.1, and 5.0 with QoS, retained messages, wills, TLS, and WebSocket. Add publish/subscribe messaging to PHP and Laravel apps, including Swoole-based async environments.
Architecture fit
simps/mqtt is a protocol-level MQTT client, not a framework integration. It belongs at the messaging edge of the architecture — device telemetry ingest, command dispatch, IoT/event fan-out — and should be isolated behind an internal interface rather than called directly from controllers.simps ecosystem), which is a fundamental mismatch with stock Laravel on PHP-FPM. It only fits cleanly in one of two shapes: (a) a Laravel Octane deployment running on Swoole, or (b) dedicated long-running worker processes decoupled from the HTTP tier.Integration feasibility
ext-swoole (or Swow) must be present and permitted in the hosting environment. Containerized deploys are fine; some managed PHP platforms are not.Technical risk
Key questions
Stack fit
.env committed to VCS.Migration path
MqttPublisher interface so the implementation can be swapped.Compatibility
ext-swoole 5.x or Swow. Confirm against your base image before committing.Sequencing Interface abstraction → PoC on target broker → publish path → consumer daemon → observability → scale-out. Each phase should be independently shippable and reversible.
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?