chillerlan/php-oauth

A PHP7.2+ OAuth1/2 and API client

2.0.4 2019-07-31 14:10 UTC

README

A PHP7.2+ OAuth1/2 client with an integrated API wrapper, loosely based on Lusitanian/PHPoAuthLib.

Packagist version License Travis CI CodeCov Scrunitizer CI Packagist downloads PayPal donate

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.