league/oauth2-server version 5.0 is out!

Coming just over a year since the last major release, version 5.0 is a complete code rewrite with many improvements:

  • PSR-7 support
  • Improved OAuth 2 specification support (public clients, implicit grant)
  • JWT support by default
  • Significantly simplified interfaces make getting started faster and easier
  • Rewritten documentation and examples

It’s simpler than ever to created an authorisation server; here is an example using the Slim Framework with support for the resource owner password credentials grant:

Your API endpoints can easily be secured using the resource server PSR-7 middleware:

To get started just run:

composer require league/oauth2-server

Check out the new documentation here - https://oauth2.thephpleague.com. If you have any questions please feel free to open a Github issue.

I’d like to thank everyone who has contributed to this release, especially Julián Gutiérrez and Frederik Bosch.

OAuth and API Consultation

If you'd like to hire me to help out with your OAuth or API implementation, or would like some advice or training for you and your team please email me at hello@glyndelabs.com.