PHPackages                             heptagon-firebase/php-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. heptagon-firebase/php-jwt

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

heptagon-firebase/php-jwt
=========================

A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.

0267↓66.7%PHP

Since Jan 4Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/acd71c80e227ef67a39da9fa21ac345ffab5cb3db71dcb8f2016a0c21a80e180/68747470733a2f2f7472617669732d63692e6f72672f6865707461676f6e2d66697265626173652f7068702d6a77742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/heptagon-firebase/php-jwt)[![Latest Stable Version](https://camo.githubusercontent.com/ef9da56a3ce97a46ad67bbf51eec74f850a33e492829e7733995c77dc5481c66/68747470733a2f2f706f7365722e707567782e6f72672f6865707461676f6e2d66697265626173652f7068702d6a77742f762f737461626c65)](https://packagist.org/packages/heptagon-firebase/php-jwt)[![Total Downloads](https://camo.githubusercontent.com/3093a01e240c84a315385f112a8413a58f537c9e8b12d765e9976416d36db650/68747470733a2f2f706f7365722e707567782e6f72672f6865707461676f6e2d66697265626173652f7068702d6a77742f646f776e6c6f616473)](https://packagist.org/packages/heptagon-firebase/php-jwt)[![License](https://camo.githubusercontent.com/d7414c3c6f4bab7260a70649937b7bdeca2f048cf10ba9a007ac1e72a31946df/68747470733a2f2f706f7365722e707567782e6f72672f6865707461676f6e2d66697265626173652f7068702d6a77742f6c6963656e7365)](https://packagist.org/packages/heptagon-firebase/php-jwt)

PHP-JWT
=======

[](#php-jwt)

A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to [RFC 7519](https://tools.ietf.org/html/rfc7519).

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

[](#installation)

Use composer to manage your dependencies and download PHP-JWT:

```
composer require heptagon-heptagon-firebase/php-jwt
```

Example
-------

[](#example)

```
