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-09-27 16:44:16 UTC


Generate, Validate and Destroy tokens.


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


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