PHPackages                             paragonie/php-jwt-guard - 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. paragonie/php-jwt-guard

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

paragonie/php-jwt-guard
=======================

v0.3.0(4y ago)9866BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 11Pushed 4y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

PHP-JWT-Guard
=============

[](#php-jwt-guard)

[![Build Status](https://github.com/paragonie/php-jwt-guard/actions/workflows/ci.yml/badge.svg)](https://github.com/paragonie/php-jwt-guard/actions)[![Latest Stable Version](https://camo.githubusercontent.com/9fce1ee9f8f8c7489acdf88aa43806969becb36b909ed49ab325cfb3d1cbb090/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f7068702d6a77742d67756172642f762f737461626c65)](https://packagist.org/packages/paragonie/php-jwt-guard)[![Latest Unstable Version](https://camo.githubusercontent.com/4cc41c7c710e9434df54fb852fb08bec9458d839be42230002939d50a022dd42/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f7068702d6a77742d67756172642f762f756e737461626c65)](https://packagist.org/packages/paragonie/php-jwt-guard)[![License](https://camo.githubusercontent.com/def506e674f3671a0290ad85bf6f6d2e2467e78e21a709a87e39567b4842eaad/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f7068702d6a77742d67756172642f6c6963656e7365)](https://packagist.org/packages/paragonie/php-jwt-guard)[![Downloads](https://camo.githubusercontent.com/73349ae6b786a9945a0a2e5ff5a5d13fb11140745952ed3d51d07faa55f71ea0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617261676f6e69652f7068702d6a77742d67756172642e737667)](https://packagist.org/packages/paragonie/php-jwt-guard)

Protect your code from being impacted by [issue 351 in firebase/php-jwt](https://github.com/firebase/php-jwt/issues/351).

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

[](#installation)

First, install this library with Composer:

```
composer require paragonie/php-jwt-guard

```

And then in your PHP namespace imports, swap the namespace:

```
- use Firebase\JWT\JWT;
+ use ParagonIE\PhpJwtGuard\JWT;
```

You're no longer going to provide an array or ArrayAccess object to `JWT`. You will instead need to use the provided `KeyRing` class.

```
