chillerlan / php-oauth
A PHP7.2+ OAuth1/2 and API client
Fund package maintenance!
Ko Fi
Requires
- php: ^7.2.0
- chillerlan/php-httpinterface: 1.0.2
- chillerlan/php-log: 1.0.3
- chillerlan/php-traits: ^1.1
- psr/log: ^1.0
- psr/simple-cache: ^1.0
Requires (Dev)
- chillerlan/php-cache: ^1.0
- chillerlan/php-curl: ^1.0
- chillerlan/php-database: ^2.0
- guzzlehttp/guzzle: ^6.3
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2021-04-05 21:39:06 UTC
README
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.