Updated Documentation and .json file
This commit is contained in:
parent
88d5412f5c
commit
b387089b32
21
Readme.md
21
Readme.md
|
|
@ -14,7 +14,28 @@ composer require salmanzafar/laravel-mqtt
|
||||||
* Certificate Protection for end to end encryption
|
* Certificate Protection for end to end encryption
|
||||||
* Enable Debug mode to make it easier for debugging
|
* Enable Debug mode to make it easier for debugging
|
||||||
|
|
||||||
|
## Enable the package (Optional)
|
||||||
|
This package implements Laravel auto-discovery feature. After you install it the package provider and facade are added automatically for laravel >= 5.5.
|
||||||
|
|
||||||
|
__This step is only required if you are using laravel version <5.5__
|
||||||
|
|
||||||
|
To declare the provider and/or alias explicitly, then add the service provider to your config/app.php:
|
||||||
|
|
||||||
|
```
|
||||||
|
'providers' => [
|
||||||
|
|
||||||
|
Salman\Mqtt\MqttServiceProvider::class,
|
||||||
|
];
|
||||||
|
```
|
||||||
|
And then add the alias to your config/app.php:
|
||||||
|
```
|
||||||
|
'aliases' => [
|
||||||
|
|
||||||
|
'Mqtt' => \Salman\Mqtt\Facades\Mqtt::class,
|
||||||
|
];
|
||||||
|
```
|
||||||
## Configuration
|
## Configuration
|
||||||
|
Publish the configuration file
|
||||||
```
|
```
|
||||||
php artisan vendor:publish --provider="Salman\Mqtt\MqttServiceProvider"
|
php artisan vendor:publish --provider="Salman\Mqtt\MqttServiceProvider"
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "salmanzafar/laravel-mqtt",
|
"name": "salmanzafar/laravel-mqtt",
|
||||||
"description": "A simple MQTT Package to connect/publish/subscribe to a MQTT broker using Laravel 5",
|
"description": "A simple MQTT Library to connect/publish/subscribe to a MQTT broker using Laravel 5",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|
@ -9,6 +9,17 @@
|
||||||
"email": "salmanzafar949@gmail.com"
|
"email": "salmanzafar949@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"keywords": [
|
||||||
|
"laravel",
|
||||||
|
"laravel5",
|
||||||
|
"mqtt-laravel",
|
||||||
|
"mqtt-laravel-publisher",
|
||||||
|
"mqtt-laravel-subscriber",
|
||||||
|
"laravel mqtt library",
|
||||||
|
"laravel-mqtt",
|
||||||
|
"laravel mqtt",
|
||||||
|
"mqtt laravel"
|
||||||
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0"
|
"php": ">=5.4.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue