There is no license information available for the latest version (1.0.0) of this package.

Generating, Validating and Destorying tokens

1.0.0 2019-06-27 11:30 UTC

This package is auto-updated.

Last update: 2020-03-27 13:24:32 UTC


README

Generate, Validate and Destroy tokens.

Usage

$tokenManager = new Token('exampletoken','./tokens');
$token = $tokenManager->create();
if ($tokenManager->validate($token)) { echo "Valid Token" }
if (!$tokenManager->validate($token)) { echo "Token Invalid When Used" }

Test

As features are added, there will be new tests to prove they work as intended. You can run the tests yourself using the following command.

vendor/bin/phpunit test