https://github.com/maciejslawik/jwt
A simple JWT handling PHP library
https://github.com/maciejslawik/jwt
jwt php
Last synced: 6 months ago
JSON representation
A simple JWT handling PHP library
- Host: GitHub
- URL: https://github.com/maciejslawik/jwt
- Owner: maciejslawik
- License: mit
- Created: 2017-07-24T18:33:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T20:41:55.000Z (over 7 years ago)
- Last Synced: 2025-08-19T02:23:14.857Z (10 months ago)
- Topics: jwt, php
- Language: PHP
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://scrutinizer-ci.com/g/maciejslawik/jwt/?branch=master)
[](https://scrutinizer-ci.com/g/maciejslawik/jwt/?branch=master)
[](https://scrutinizer-ci.com/g/maciejslawik/jwt/build-status/master)
[](https://packagist.org/packages/mslwk/jwt)
[](https://packagist.org/packages/mslwk/jwt)
[](https://packagist.org/packages/mslwk/jwt)
# JSON Web Token encoder/decoder #
The library provides dead easy way of creating and verifing JSON Web Tokens.
### Installation ###
Use composer to include the library in your project.
```
composer require mslwk/jwt
```
### Usage ###
#### Generating a token ####
Include the Generator class:

Generate a token:

#### Verifing a token ####
Include the Generator class:

Generate a token:
