2017 © Pedro Peláez
 

library request-signer

PHP library to sign and verify requests

image

arthens/request-signer

PHP library to sign and verify requests

  • Wednesday, March 26, 2014
  • by arthens
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40,555 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

PHP Request Signer

arthens/request-signer is a PHP library to sign and validate requests., (*1)

The implementation is inspired by the AWS Rest Authentication tutorial., (*2)

Build Status, (*3)

Installation

Add arthens/request-signer to your composer.json., (*4)

You can also download request-signer directly, as it doesn't have any dependency., (*5)

Usage

// Use composer or import the class manually
require 'vendor/autoload.php';

// Create a new Signer
$signer = new \Arthens\RequestSigner\Signer('here-your-secret-key');

// Generate a new url-friendly signature
$signature = $signer->sign('GET', '/news');

// Verify a signature
if (!$signer->verify('here-the-signature-from-request', 'GET', '/news')) {
    throw new \Exception('Invalid signature');
}

The Versions

26/03 2014

dev-features/request-handlers

dev-features/request-handlers

PHP library to sign and verify requests

  Sources   Download

The Requires

  • php >=5.3.2

 

The Development Requires

24/03 2014

dev-master

9999999-dev

PHP library to sign and verify requests

  Sources   Download

The Requires

  • php >=5.3.2

 

The Development Requires

24/03 2014

0.1

0.1.0.0

PHP library to sign and verify requests

  Sources   Download

The Requires

  • php >=5.3.2

 

The Development Requires