chillerlan/php-oauth
A PHP7.2+ OAuth1/2 client with an integrated API wrapper, loosely based on Lusitanian/PHPoAuthLib.
Documentation
Requirements
- PHP 7.2+
- the Sodium extension for token encryption
- a PSR-18 compatible HTTP client library of your choice (there is one included, though)
- optional PSR-17 compatible Request-, Response- and UriFactories
For documentation of the core components, see chillerlan/php-oauth-core
Supported Providers
[...]
(PR welcome!)
Installation
requires composer
composer.json (note: replace dev-master with a version boundary)
{
"require": {
"php": "^7.2",
"chillerlan/php-oauth": "dev-master"
}
}Profit!
Usage
[...]
Disclaimer
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.