PHP code example of dealnews / inngest
1. Go to this page and download the library: Download dealnews/inngest 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/ */
dealnews / inngest example snippets
$client = new \DealNews\Inngest\Client(MY_INNGEST_KEY);
try {
$client->send(
'event/name',
[
'some' => 'payload'
]
);
} catch (\Throwable $e) {
echo "Failed to send event: " . $e->getMessage();
}