1. Go to this page and download the library: Download gr4vy/gr4vy-php 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/ */
try {
Gr4vyConfig::verifyWebhook(
$secret, // The webhook secret key
$payload, // The raw payload of the webhook
$signatureHeader, // The `X-Gr4vy-Webhook-Signatures` header from the webhook
$timestampHeader, // The `X-Gr4vy-Webhook-Timestamp` header from the webhook
$timestampTolerance // Optional: Tolerance in seconds for timestamp validation
);
echo "Webhook verified successfully.";
} catch (Exception $e) {
echo "Webhook verification failed: " . $e->getMessage();
}
ini
Authorization: Bearer <bearerToken>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.