PHP code example of muscobytes / laravel-cdek-webhook
1. Go to this page and download the library: Download muscobytes/laravel-cdek-webhook library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
muscobytes / laravel-cdek-webhook example snippets
namespace App\Listeners;
use App\Jobs\CreateOrderFromPostingJob;
use Muscobytes\OzonSeller\Events\DownloadPhotoEvent;
class DownloadPhotoEventListener
{
public function handle(
DownloadPhotoEvent $event
): void
{
/** @var \Muscobytes\CdekWebhook\Messages\DownloadPhotoMessage $message */
$message = $event->getMessage();
// Ваш код
}
}