2017 © Pedro Peláez
 

library nonces

Allows the easy use of WordPress-like Nonces in an object-oriented way

image

rhurling/nonces

Allows the easy use of WordPress-like Nonces in an object-oriented way

  • Tuesday, April 5, 2016
  • by rhurling
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Object Oriented Nonces

Composer package that replicates WordPress nonces in an object oriented way., (*1)

Build Status Coverage Status Scrutinizer Code Quality, (*2)

Usage

Configure Nonce Defaults

``` php use RouvenHurling\Nonces\Config;, (*3)

Config::setSalt($salt); Config::setUserId($userId); Config::setSessionToken($sessionToken);, (*4)


### Create Nonce ``` php use RouvenHurling\Nonces\Nonce; $nonce = new Nonce('readme-action'); $nonce->generate();

Verify Nonce

``` php use RouvenHurling\Nonces\Verifer;, (*5)

$verifier = new Verifier(); $verifier->verify($nonce, $action);, (*6)


### Override global configuration per Nonce ``` php $nonce = new Nonce('Action', $myConfig); $verifier = new Verifier($myConfig); $nonce->setLifespan(172800); $nonce->setAlgorithm('sha256'); $nonce->setSalt($salt); $nonce->setUserId($userId); $nonce->setSessionToken($sessionToken);

The Versions

05/04 2016

dev-master

9999999-dev

Allows the easy use of WordPress-like Nonces in an object-oriented way

  Sources   Download

GPL

The Development Requires

by Rouven Hurling

27/03 2016

3.0.0

3.0.0.0

Allows the easy use of WordPress-like Nonces in an object-oriented way

  Sources   Download

GPLv2

The Development Requires

by Rouven Hurling

26/03 2016

2.1.0

2.1.0.0

Allows the easy use of WordPress-like Nonces in an object-oriented way

  Sources   Download

GPLv2

The Development Requires

by Rouven Hurling

26/03 2016

2.0.0

2.0.0.0

Allows the easy use of WordPress-like Nonces in an object-oriented way

  Sources   Download

GPLv2

The Development Requires

by Rouven Hurling

25/03 2016

1.0.0

1.0.0.0

Allows the easy use of WordPress-like Nonces in an object-oriented way

  Sources   Download

GPLv2

The Development Requires

by Rouven Hurling