Installation
Install OAuth2 with Composer.
shell
composer require raxos/oauth2Requirements
- PHP 8.5 or newer.
The package relies only on the default PHP runtime; no additional extensions are required beyond those pulled in by its Raxos dependencies.
Raxos dependencies
OAuth2 builds on a few other Raxos packages, which Composer installs automatically:
- cache: a typical
TokenFactoryInterfaceimplementation stores access tokens, refresh tokens and authorization codes here. - foundation: shared utilities used across the Raxos ecosystem.
- http: provides the
HttpRequest,HttpResponseandHttpResponseCodeobjects every endpoint consumes and returns. - router: provides the controller attributes, the
Respondstrait and the middleware pipeline the server plugs into.
Return to the OAuth2 introduction.