PHPackages                             geraint/php-simple-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. geraint/php-simple-jwt

ActiveLibrary

geraint/php-simple-jwt
======================

A simple JWT generator

v1.0.0(2y ago)0239GPL-3.0-onlyPHPPHP &gt;=8.1

Since Jun 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Geraint/php-simple-jwt)[ Packagist](https://packagist.org/packages/geraint/php-simple-jwt)[ RSS](/packages/geraint-php-simple-jwt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP Simple JWT
==============

[](#php-simple-jwt)

[![Build Status](https://github.com/Geraint/php-simple-jwt/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/Geraint/php-simple-jwt/actions/workflows/build-and-test.yml/badge.svg)

**Warning**

I built this as a learning excercise. It is not recommended for Production use. Use at your own risk.

---

A very simple implementation of the RS256 algorithm for signing JWT's.

It would be trivial to add support for more algorithms.

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

[](#installation)

```
composer require geraint/php-simple-jwt:dev-main
```

Usage
-----

[](#usage)

The example script in the `/bin` directory looks like this:

```
