moh4git/maystro-webhook
最新稳定版本:v0.2.6
Composer 安装命令:
composer require moh4git/maystro-webhook
包简介
Maystro Webhook
README 文档
README
Maystro delivery webhook trait package
How to use:
Installation
You can install the package via composer:
composer require moh4git/maystro-webhook
Now run this php artisan command :
php artisan webhook:install
This command will create a controller inside : app\Http\Controllers\MaystroDelivery
namespace App\Http\Controllers\MaystroDelivery;
use App\Http\Controllers\Controller;
use MaystroWebhook\MaystroWebhook;
use Illuminate\Http\Request;
class MaystroDeliveryController extends Controller
{
use MaystroWebhook;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
public function responseData()
{
\Log::debug(['log_type' => 'test1', 'data' => $this->response_data]);
return response('OK', 200);
}
}
Usage
Register the route https://yourdomainname.com/maystro/webhook/endpoint inside your Maystro account in webhooks tab
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-01