https://github.com/padcmoi/simply-jwt
JsonWebToken(JWT) simple d'utilisation
https://github.com/padcmoi/simply-jwt
jwt jwt-decode jwt-tokens
Last synced: 4 months ago
JSON representation
JsonWebToken(JWT) simple d'utilisation
- Host: GitHub
- URL: https://github.com/padcmoi/simply-jwt
- Owner: padcmoi
- License: mit
- Created: 2021-10-22T16:08:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-22T16:28:38.000Z (over 4 years ago)
- Last Synced: 2025-08-02T01:23:05.013Z (10 months ago)
- Topics: jwt, jwt-decode, jwt-tokens
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimplyJWT
JsonWebToken(JWT) simple d'utilisation
# ➡️Install
```
composer require padcmoi/simply-jwt
```
# ➡️Usage
***Exemple***
```php
use Padcmoi\JWT\SimplyJWT;
SimplyJWT::init('***PRIVATE_KEY***', 'HS256', 3600); // KEY, Algorithm, Expire Timestamp
$serializedToken = SimplyJWT::encode([
"exp" => time() + 3600,
"iat" => time(),
"uid" => -1, // Id account
]);
$payload = SimplyJWT::decode($serializedToken);
```
# ➡️Others
##### 🧳Packagist
https://packagist.org/packages/padcmoi/simply-jwt
##### 🔖Licence
Ce travail est sous licence [MIT](/LICENSE).
##### 🔥Pour me contacter sur discord
Lien discord [discord.gg/257rUb9](https://discord.gg/257rUb9)
##### 🍺Si vous souhaitez m’offrir une bière
Me faire un don 😍 [par Paypal](https://www.paypal.com/paypalme/Julien06100?locale.x=fr_FR)