acinader/signed-request

Simple request signing library

Maintainers

Package info

github.com/acinader/SignedRequest

pkg:composer/acinader/signed-request

Statistics

Installs: 19

Dependents: 0

Suggesters: 0

Stars: 5

Open Issues: 1

dev-master 2024-04-27 19:33 UTC

This package is auto-updated.

Last update: 2026-03-27 23:33:22 UTC


README

General purpose request signer and validator.

Sign an http request that can be authenticated with a shared secret.

Usage:

  $params = array('foo' => 'bar', 'Fid' => array('fig' => 'floo', 'soo' => 'tid'), 'nid' => 'nad');
  echo 'http://localhost/SignedRequest.php/?' . $signer->generateValidQueryString($params) . "\n";

To validate the current request:

  echo $signer->validateCurrentRequest() ? "valid\n" : "invalid\n";