I need a simple PHP library to encode and decode JSON Web Tokens. It will be used to integrate OIDC / OpenID Connect logins into existing PHP forum software.
For example, here is a library for .NET(C#): https://github.com/johnsheehan/jwt
We are using this library: https://github.com/firebase/php-jwt
You could also try this one: https://coderwall.com/p/8wrxfw/goodbye-php-sessions-hello-json-web-tokens
The last link contains nice little article on using JWT tokens with PHP
Here's a list of JWT libraries, including 6 for PHP: https://jwt.io/
Here's a list of OIDC libraries, including 4 for PHP: http://openid.net/developers/libraries/