Skip to content

Commit c0bc99c

Browse files
committed
initial commit
setting up the project
0 parents  commit c0bc99c

File tree

7 files changed

+846
-0
lines changed

7 files changed

+846
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.idea/
2+
/vendor/

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Namoshek <namoshek@gmx.at>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# php-mqtt/laravel-client
2+
3+
`php-mqtt/laravel-client` was created by, and is maintained by [Namoshek](https://github.com/namoshek).
4+
It is a Laravel wrapper for the [`php-mqtt/client`](https://github.com/php-mqtt/client) package and
5+
allows you to connect to an MQTT broker where you can publish messages and subscribe to topics.
6+
7+
## Installation
8+
9+
```bash
10+
composer require php-mqtt/laravel-client
11+
```
12+
13+
You should then publish the configuration file using
14+
15+
```bash
16+
php artisan vendor:publish --provider="PhpMqtt\Client\MqttClientServiceProvider"
17+
```
18+
19+
## Usage
20+
21+
// TODO: usage
22+
23+
## Features
24+
25+
This library allows you to use all the features provided by [`php-mqtt/client`](https://github.com/php-mqtt/client).
26+
27+
## License
28+
29+
`php-mqtt/laravel-client` is open-sourced software licensed under the [MIT license](LICENSE.md).

composer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "php-mqtt/laravel-client",
3+
"description": "An MQTT client library for Laravel.",
4+
"type": "library",
5+
"keywords": [
6+
"mqtt",
7+
"client",
8+
"publish",
9+
"subscribe",
10+
"laravel"
11+
],
12+
"homepage": "https://github.com/php-mqtt/laravel-client",
13+
"license": "MIT",
14+
"authors": [
15+
{
16+
"name": "Namoshek",
17+
"email": "namoshek@gmx.at",
18+
"role": "developer"
19+
}
20+
],
21+
"require": {
22+
"php": "^7.2",
23+
"illuminate/config": "~5.8",
24+
"illuminate/support": "~5.8",
25+
"php-mqtt/client": "0.1.*"
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"PhpMqtt\\Client\\": "src"
30+
}
31+
},
32+
"extra": {
33+
"laravel": {
34+
"providers": [
35+
"PhpMqtt\\Client\\MqttClientServiceProvider"
36+
]
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)