A PHP7.4+ OAuth1/2 client with an integrated API wrapper, loosely based on Lusitanian/PHPoAuthLib.
See the wiki for advanced documentation. An API documentation created with phpDocumentor can be found at https://chillerlan.github.io/php-oauth-core/ (WIP).
- PHP 7.4+
- a PSR-18 compatible HTTP client library of your choice (there is one included, though)
- optional PSR-17 compatible Request-, Response- and UriFactories
- see
chillerlan/php-oauth-providers
for already implemented providers
requires composer
composer.json
(note: replace dev-main
with a version boundary)
{
"require": {
"php": "^7.4 || ^8.0",
"chillerlan/php-oauth-core": "dev-main"
}
}
Profit!
OAuth tokens are secrets and should be treated as such. Store them in a safe place,
consider encryption.
I won't take responsibility for stolen auth tokens. Use at your own risk.