<?php use \Imunify360\ImunifyNotificationsBuilder; use \Imunify360\ImunifyLog; // Read JSON input from STDIN $jsonInput = file_get_contents('php://stdin'); $eventObject = json_decode($jsonInput); if (!$eventObject || !isset($eventObject->event_id)) { ImunifyLog::err('Imunify: send-notifications.php - event_id is not defined'); exit; } ImunifyNotificationsBuilder::dispatch($eventObject);