beastbytes/token-uuid4
Composer 安装命令:
composer require beastbytes/token-uuid4
包简介
UUID 4 Token Factory for BeastBytes Token
README 文档
README
Factory for generating UUID4 tokens for use in the Token Manager of
the BeastBytes Token package.
Requirements
- PHP 8.1 or higher.
Installation
Installed the package with Composer:
composer require beastbytes/token-uuid4
or add the following to the 'require' section composer.json:
"beastbytes/token-uuid4": "^1.0"
Usage
If using directly:
$tokenManager = new BeastBytes\Token\TokenManager( new BeastBytes\Token\Uuid4\TokenFactory(), new BeastBytes\Token\Php\TokenStorage() // or any other TokenStorageInterface implementation );
or define in the "di" section of Yii3 configuration:
return [ TokenFactoryInterface::class => \BeastBytes\Token\Uuid4\TokenFactory::class, TokenStorageInterface::class => [ 'class' => TokenStorage::class, '__construct()' => [ // constructor arguments for the TokenStorage class ], ], ManagerInterface::class => [ 'class' => Manager::class, '__construct()' => [ 'factory' => Reference::to(TokenFactoryInterface::class), 'storage' => Reference::to(TokenStorageInterface::class), ], ], ];
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-03-22