1. Go to this page and download the library: Download autotix/php-sdk 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/ */
autotix / php-sdk example snippets
use Autotix\PhpSdk\WebhookClient;
$client = new WebhookClient(
$psr18Client, // any PSR-18 ClientInterface
$psr17RequestFactory, // PSR-17 RequestFactoryInterface
$psr17StreamFactory, // PSR-17 StreamFactoryInterface
[
'auth_method' => 'token', // or 'hmac'
'auth_token' => 'your-org-token', // from app.autotix.io → Settings
],
);
$client->send([
'message' => $exception->getMessage(),
'stack_trace' => $exception->getTraceAsString(),
'url' => 'https://example.com/checkout',
'environment' => 'production',
]);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.