This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
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: 2021-07-27 16:16:55 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