wudege/token-assistant
Composer 安装命令:
composer create-project wudege/token-assistant
包简介
Token Management based Redis
README 文档
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.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-05