liostech/callbackin
Composer 安装命令:
composer require liostech/callbackin
包简介
Simple library for receive mqtt message and make http request from data
README 文档
README
CALLBACKIN
Callbackin a plugin for handling and interfacing a callback from server to localhost.
HOW IS Works?
Callbackin is a plugin for handling and interfacing a callback from server to localhost using mqtt.
when server send a callback to https://callbackin.herokuapp.com/{your randomstring} , server in heroku (callbackin server) will send a callback to localhost (callbackin library) via mqtt and the library will send same data and header to CALLBACKIN_LOCAL_ENDPOINT.
if you want to use your own callbackin server you can see my server code in github
HOW TO USE
- Create a new laravel app.
- install this plugin.
composer require liostech/callbackin - Add this line to your .env file:
CALLBACKIN_LOCAL_ENDPOINT=http://localhost:8000/localendpoint CALLBACKIN_PUBLIC_PATH=randomstring - Run this command:
php artisan callbackin:listen - Set your callback url to:
https://callbackin.herokuapp.com/{your randomstring}
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2022-07-17
