PHPackages                             wearesho-team/yii2-authorization - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. wearesho-team/yii2-authorization

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

wearesho-team/yii2-authorization
================================

Redis Authorization Tokens for Yii2

2.4.0(3w ago)061[4 PRs](https://github.com/wearesho-team/yii2-authorization/pulls)1MITPHPPHP ^8.1

Since Jan 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/wearesho-team/yii2-authorization)[ Packagist](https://packagist.org/packages/wearesho-team/yii2-authorization)[ RSS](/packages/wearesho-team-yii2-authorization/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (16)Versions (24)Used By (1)

Yii2 Authorization
==================

[](#yii2-authorization)

[![Test & Lint](https://github.com/wearesho-team/yii2-authorization/actions/workflows/php.yml/badge.svg)](https://github.com/wearesho-team/yii2-authorization/actions/workflows/php.yml)[![codecov](https://camo.githubusercontent.com/88ab48b67add731509e9bf3ae4be33dda70d85d2b9290164035b497491895b9b/68747470733a2f2f636f6465636f762e696f2f67682f776561726573686f2d7465616d2f796969322d617574686f72697a6174696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wearesho-team/yii2-authorization)

Authorizing users using redis tokens for Yii2

Installation
------------

[](#installation)

```
composer require wearesho-team/yii2-authorization:^2.0
```

Usage
-----

[](#usage)

### Token Entity

[](#token-entity)

To operate with access and refresh token pair you should use [Token](./src/Token.php) entity.

```
