https://github.com/socialconnect/jwx
⚠️ PHP library for JSON web tokens (JWT) and JWT and etc
https://github.com/socialconnect/jwx
jwt jwt-token jwx
Last synced: 11 months ago
JSON representation
⚠️ PHP library for JSON web tokens (JWT) and JWT and etc
- Host: GitHub
- URL: https://github.com/socialconnect/jwx
- Owner: SocialConnect
- License: mit
- Created: 2019-07-15T17:00:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T14:09:47.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T03:24:20.640Z (about 1 year ago)
- Topics: jwt, jwt-token, jwx
- Language: PHP
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JWX
===
[](https://packagist.org/packages/socialconnect/jwx)
[](https://github.com/SocialConnect/jwx/blob/master/LICENSE)
[](https://app.fossa.io/projects/git%2Bgithub.com%2FSocialConnect%2Fjwx?ref=badge_shield)
## [Documentation](https://socialconnect.lowl.io/jwx.html) :: [Getting Started](https://socialconnect.lowl.io/jwx.html)
Implementation:
- JWT (JSON Web Token) [RFC 7519](https://tools.ietf.org/html/rfc7519)
- JWK (JSON Web Keys) [RFC 7517](https://tools.ietf.org/html/rfc7517)
- JWKs (JSON Web Key Set) [RFC 7517](https://tools.ietf.org/html/rfc7517#section-8.4)
## Encode
```php
5,
]);
$encodeOptions = new \SocialConnect\JWX\EncodeOptions();
$encodeOptions->setExpirationTime(600);
$token = $jwt->encode('TEST', 'HS256', $encodeOptions);
var_dump($token);
```
## Decode
```php