1. Go to this page and download the library: Download tanujdave/notify 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/ */
tanujdave / notify example snippets
namespace App;
use Printi\NotifyBundle\Notify;
class HelloClass {
private $notify;
public function __construct(Notify $notify)
{
$this->notify = $notify;
}
public function onTransitionUpdate()
{
$message = [
"order_item_id" => 11111,
"transition" => 'prepress_reject',
"reference" => null,
"status_id" => 50,
"version" => 2,
];
$this->notify->notifyOnTransition('prepress_reject', $message);
}
}