PHPackages                             vaszloy/yii2-jwt - 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. vaszloy/yii2-jwt

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

vaszloy/yii2-jwt
================

Trait for easier JWT integration

v0.2.3(4y ago)014MITPHP

Since Nov 9Pushed 4y agoCompare

[ Source](https://github.com/vaszloy/yii2-jwt)[ Packagist](https://packagist.org/packages/vaszloy/yii2-jwt)[ Docs](https://github.com/vaszloy/yii2-jwt)[ RSS](/packages/vaszloy-yii2-jwt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

yii2-jwt
========

[](#yii2-jwt)

JWT implementation for Yii2 Authorization process

For details see [JWT official website](https://jwt.io/introduction/).

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

[](#installation)

To install (only master is available now) run:

```
    composer require "vaszloy/yii2-jwt"

```

Or add this line to *require* section of composer.json:

```
    "vaszloy/yii2-jwt": "v5.0"

```

Usage
-----

[](#usage)

There is only one trait - *UserTrait* - which gives you 5 methods for authorization and JWT-management in User model

Set up:

In controller:

```
