Download the PHP package hakhant/mqtt-client without Composer
On this page you can find all versions of the php package hakhant/mqtt-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hakhant/mqtt-client
More information about hakhant/mqtt-client
Files in hakhant/mqtt-client
Download hakhant/mqtt-client
More information about hakhant/mqtt-client
Files in hakhant/mqtt-client
Vendor hakhant
Package mqtt-client
Short Description An MQTT client written in and for PHP.
License MIT
Package mqtt-client
Short Description An MQTT client written in and for PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package mqtt-client
Hakhant Laravel MQTT Client
This is a simple Laravel wrapper for interacting with MQTT brokers using the PhpMqtt\Client library. It provides an easy way to publish and subscribe to topics, and handle MQTT connections.
Requirements
- PHP 8.0 or higher
- PhpMqtt\Client library
Installation
To get started, you need to install the MQTT Client package via Composer:
Create a configuration file for the MQTT client. Run the following artisan command to publish the configuration file:
This will create a config/mqtt.php file in your Laravel project where you can define the necessary configuration options for connecting to the MQTT broker.
Environment Configuration
Usage
Summary of Features:
- MQTT Client Service: Easily integrate with Laravel using a service provider.
- Environment Configuration: Define broker settings in
.envandconfig/mqtt.php. - Publish/Subscribe: Methods to publish messages and subscribe to topics in your controllers.
- Looping for Messages: Keep the MQTT connection alive by running the loop in the background.
This should allow you to easily integrate MQTT into a Laravel application! Let me know if you need any further modifications.
All versions of mqtt-client with dependencies
PHP Build Version
Package Version
The package hakhant/mqtt-client contains the following files
Loading the files please wait ...