Download the PHP package wearesho-team/yii2-tokens without Composer
On this page you can find all versions of the php package wearesho-team/yii2-tokens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wearesho-team/yii2-tokens
More information about wearesho-team/yii2-tokens
Files in wearesho-team/yii2-tokens
Download wearesho-team/yii2-tokens
More information about wearesho-team/yii2-tokens
Files in wearesho-team/yii2-tokens
Vendor wearesho-team
Package yii2-tokens
Short Description Storing tokens (authorization, registration) in redis database.
License MIT
Package yii2-tokens
Short Description Storing tokens (authorization, registration) in redis database.
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-tokens
Yii2 Tokens
Storing tokens (authorization, registration) in redis database.
Installation
Usage
Repository
To store tokens you should use Repository that will receive token entity and generate UUIDv4 hash. Then, you can receive token using generated hash.
ValidationBehavior
To validate model attributes, that contains hash, owner and value you should use
validation behavior, instead of validators because three attributes have to be validated
one-time.
{attribute} is invalid.
message will be add to attribute errors and validation will fail (beforeValidate event).
TODO
- Fix test to rely on the order in which methods are invoked (Upgrade PHPUnit to 10)
Contributors
- Alexander Letnikow
License
MIT
All versions of yii2-tokens with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4
nesbot/carbon Version ^2.24 || ^1.22
ramsey/uuid Version ^3.6
yiisoft/yii2 Version ^2.0.47
yiisoft/yii2-redis Version ^2.0
nesbot/carbon Version ^2.24 || ^1.22
ramsey/uuid Version ^3.6
yiisoft/yii2 Version ^2.0.47
yiisoft/yii2-redis Version ^2.0
The package wearesho-team/yii2-tokens contains the following files
Loading the files please wait ....