Updated Documentation and .json file

This commit is contained in:
Salman Zafar 2019-03-01 11:36:34 +05:00
parent 88d5412f5c
commit b387089b32
2 changed files with 33 additions and 1 deletions

View File

@ -14,7 +14,28 @@ composer require salmanzafar/laravel-mqtt
* Certificate Protection for end to end encryption
* 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
Publish the configuration file
```
php artisan vendor:publish --provider="Salman\Mqtt\MqttServiceProvider"
```

View File

@ -1,6 +1,6 @@
{
"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",
"license": "MIT",
"authors": [
@ -9,6 +9,17 @@
"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": {
"php": ">=5.4.0"
},