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

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

guilhermetome/jwt
=================

A simple jwt class

1.0.1(5y ago)04MITPHPPHP ^7.2

Since Jun 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/GuilhermeTome/jwt)[ Packagist](https://packagist.org/packages/guilhermetome/jwt)[ Docs](https://github.com/GuilhermeTome/jwt)[ RSS](/packages/guilhermetome-jwt/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Jwt class
=========

[](#jwt-class)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/71956a1a2b011f4cd275d71c53b2c5fecd228d0d573a126994dd380747ecf726/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6865726d65546f6d652f6a77742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilhermeTome/jwt/?branch=master)[![GitHub last commit](https://camo.githubusercontent.com/7642d126e92f21af710f7ba6b5cead885a28de5e34d256d00144d21cec301b2e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4775696c6865726d65546f6d652f6a7774)](https://camo.githubusercontent.com/7642d126e92f21af710f7ba6b5cead885a28de5e34d256d00144d21cec301b2e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f4775696c6865726d65546f6d652f6a7774)[![GitHub repository size](https://camo.githubusercontent.com/f9ffd2854fccf7fd2ae29cecbc52614eac1217e5ca7ce63e0af009e2bee69995/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f4775696c6865726d65546f6d652f6a77743f636f6c6f723d626c7565)](https://camo.githubusercontent.com/f9ffd2854fccf7fd2ae29cecbc52614eac1217e5ca7ce63e0af009e2bee69995/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f4775696c6865726d65546f6d652f6a77743f636f6c6f723d626c7565)[![Build Status](https://camo.githubusercontent.com/f7778779e600e515463a11978b3bf37c326f8c3a7cd5c13209119fa1d3b04072/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6865726d65546f6d652f6a77742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GuilhermeTome/jwt/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/196319dbad8e1228140112550b22ac635d928bc33b5b5be047a0141b803dacc6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4775696c6865726d65546f6d652f6a77742f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

This project is just a simple JWT class to add to your project and can be configured using contants.

Summary
-------

[](#summary)

- [Prerequisites](#prerequisites)
- [Installing](#installing)
- [How to use](#how-to-use)
- [Contributing](#contributing)
- [License](#license)

### Prerequisites

[](#prerequisites)

- PHP &gt;= 7.2
- Composer

### Installing

[](#installing)

You can clone the project with this command:

- Clone repository:

```
git clone https://github.com/GuilhermeTome/jwt

```

- Install in your project:

```
composer require guilhermetome/jwt

```

How to use
----------

[](#how-to-use)

- Only follow the docs.

### Declare the jwt key

[](#declare-the-jwt-key)

- In you application you need to create a const like this:

```
