PHPackages                             wearesho-team/yii2-authentication - 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-authentication

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

wearesho-team/yii2-authentication
=================================

Yii2 authentication integration

1.3.3(2y ago)00[1 PRs](https://github.com/wearesho-team/yii2-authentication/pulls)MITPHPPHP &gt;=7.4

Since Jan 28Pushed 2y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (9)Versions (17)Used By (0)

Yii2 Authentication
===================

[](#yii2-authentication)

[![Build Status](https://camo.githubusercontent.com/81badba9a06f9a989f865c5bca9ed2def203712a9071f2f8936d9e5fa0ac9ca7/68747470733a2f2f7472617669732d63692e6f72672f776561726573686f2d7465616d2f796969322d61757468656e7469636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wearesho-team/yii2-authentication)[![codecov](https://camo.githubusercontent.com/8fd8838ebdd0e61eedcea240788390a7a8c42ace794d4bd7eeb1f15697a59065/68747470733a2f2f636f6465636f762e696f2f67682f776561726573686f2d7465616d2f796969322d61757468656e7469636174696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wearesho-team/yii2-authentication)

Simple Yii2 library to authenticate API users and generate authorization tokens using [wearesho-team/yii2-authorization](https://github.com/wearesho-team/yii2-authorization)

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

[](#installation)

Using [composer](https://packagist.org)

```
composer require wearesho-team/yii2-authentication:^1.0
```

Usage
-----

[](#usage)

First, you need to implement [IdentityInterface](./src/IdentityInterface.php). Then, you can use [Controller](./src/Controller.php) in your applications.

### Configuration

[](#configuration)

```
