New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adgators/screenseed-webhook

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adgators/screenseed-webhook

PHP utilities for verifying ScreenSeed webhook signatures

Source
Packagist
Version
v1.0.0
Version published
Total downloads
312
Maintainers
0
Created
Source

ScreenSeed Webhook Verification (PHP)

Tests PHP Version License

PHP utilities for verifying ScreenSeed webhook signatures.

This package helps you:

  • Validate webhook signatures securely
  • Prevent replay attacks
  • Safely compare HMACs using constant-time comparison

Installation

composer require adgators/screenseed-webhook

Usage

use AdGators\ScreenSeed\Webhook\Signature;
use AdGators\ScreenSeed\Webhook\Exceptions\InvalidSignatureFormatException;

$payload = file_get_contents('php://input');
$signatureHeader = $_SERVER['HTTP_SCREENSEED_SIGNATURE'];
$secret = $_ENV['SCREENSEED_WEBHOOK_SECRET'];

try {
    $signature = new Signature($signatureHeader);

    // verify the signature matches and is less than 30 seconds old
    if (! $signature->verify($payload, $secret, 30)) {
        http_response_code(401);
        exit('Invalid webhook signature');
    }
}
catch(InvalidSignatureFormatException $e) {
    exit($e->getMessage());
}

License

MIT © AdGators

FAQs

Package last updated on 30 Dec 2025

Related posts