ziggeo/manifold-php-signature

Verify signed HTTP request from Manifold

1.0.1 2020-06-11 13:30 UTC

This package is auto-updated.

Last update: 2024-11-11 22:48:09 UTC


README

Verify signed HTTP requests from Manifold.

Install

composer require ziggeo/manifold-php-verifier

Usage

<?php
require "vendor/autoload.php";

use Manifold\Verifier\Verifier;

$master_key = "YOUR_MASTER_KEY";
$request_data = $_SERVER;

try {
     $Verifier = new Verifier($master_key);
     $resp = $Verifier->test($request_data); 
} catch (Exception $e) {
     echo $exception->getMessage();
}