wudege / token-assistant
Token Management based Redis
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- predis/predis: ^1.1
Requires (Dev)
- phpunit/phpunit: ^5.6
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^2.7
This package is not auto-updated.
Last update: 2025-01-05 03:16:31 UTC
README
INSTALL
- Use the composer command or the composer.json file. That's the recommend way. And the SDK is here
wudege/token-assistant
$ composer require wudege/token-assistant
USAGE
require __DIR__ . '/vendor/autoload.php'; $config = array( 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, ); $userId = 9527; $client = new \Predis\Client($config); $dispatcher = new \TokenAssistant\TokenDispatcher($client); $token = $dispatcher->assign($userId);
TEST
$ ./vendor/bin/phpunit tests/TokenAssistant/Tests
LICENSE
The MIT License (MIT). License File.