Download the PHP package moh4git/maystro-webhook without Composer
On this page you can find all versions of the php package moh4git/maystro-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package maystro-webhook
MaystroWebhook
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
All versions of maystro-webhook with dependencies
PHP Build Version
Package Version
No informations.
The package moh4git/maystro-webhook contains the following files
Loading the files please wait ...