Json Web Token (JWT) is an opened standard to allow data to be signed (JWS) and/or encrypted (JWE).
JWT-Framework is a one of the most complete PHP suite of tools that provides everything you need to read, write or verify tokens. It also contains easy to use components for keys and keysets management.
You will find the project on its dedicated Github organization.