Skip to content

Commit

Permalink
docs: on PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Dec 13, 2019
1 parent cb2b81e commit 62586ec
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@ If you are new to JWT or want to refresh your familiarity with it, please check
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)


- Lightweight JSON Web Token (JWT) library for PHP5.6 or newer.
- Lightweight JSON Web Token (JWT) library for PHP7.
- If you still use PHP5.6, use version [0.1.2](https://github.com/adhocore/php-jwt/releases/tag/v0.1.2)

## Installation
```
```sh
# PHP7.0+
composer require adhocore/jwt

# PHP5.6
composer require adhocore/jwt:0.1.2

# For PHP5.4-5.5, use version 0.1.2 with a polyfill for https://php.net/hash_equals
```

## Features
Expand Down Expand Up @@ -106,7 +113,7 @@ $jwt->parse($token);
$jwt->setTestTimestamp();
```

> Examples with `kid`:
#### Examples with `kid`

```php
$jwt = new JWT(['key1' => 'secret1', 'key2' => 'secret2']);
Expand Down Expand Up @@ -138,4 +145,3 @@ Coming soon [laravel-jwt](https://github.com/adhocore/laravel-jwt).
### Consideration

Be aware of some security related considerations as outlined [here](http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/) which can be valid for any JWT implementations.

0 comments on commit 62586ec

Please sign in to comment.