chillerlan/php-oauth

A PHP7.2+ OAuth1/2 and API client

2.0.3 2018-01-29 02:26 UTC

README

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

Packagist version License Packagist downloads PayPal donate

Documentation

Requirements

  • PHP 7.2+
  • the Sodium extension for token encryption
  • cURL, PHP's stream wrapper or a HTTP client library of your choice

Basic usage

see chillerlan/php-oauth-core

Supported Providers

apidocs packagist travis github
Amazon Packagist Travis chillerlan/php-oauth-amazon
BattleNet - - -
BigCartel Packagist Travis chillerlan/php-oauth-bigcartel
Bungie - - -
Deezer Packagist Travis chillerlan/php-oauth-deezer
DeviantArt Packagist Travis chillerlan/php-oauth-deviantart
Discogs Packagist Travis chillerlan/php-oauth-discogs
Discord Packagist Travis chillerlan/php-oauth-discord
EveOnline - - -
Flickr Packagist Travis chillerlan/php-oauth-flickr
Foursquare Packagist Travis chillerlan/php-oauth-foursquare
GitHub Packagist Travis chillerlan/php-oauth-github
Gitter Packagist Travis chillerlan/php-oauth-gitter
Google Packagist Travis chillerlan/php-oauth-google
GuildWars2 - - -
Instagram Packagist Travis chillerlan/php-oauth-instagram
LastFM Packagist Travis chillerlan/php-oauth-lastfm
MailChimp Packagist Travis chillerlan/php-oauth-mailchimp
Mastodon Packagist Travis chillerlan/php-oauth-mastodon
Mixcloud Packagist Travis chillerlan/php-oauth-mixcloud
MusicBrainz Packagist Travis chillerlan/php-oauth-musicbrainz
OpenCaching Packagist Travis chillerlan/php-oauth-opencaching
OpenStreetmap Packagist Travis chillerlan/php-oauth-osm
Patreon Packagist Travis chillerlan/php-oauth-patreon
Slack Packagist Travis chillerlan/php-oauth-slack
SoundCloud Packagist Travis chillerlan/php-oauth-soundcloud
Spotify Packagist Travis chillerlan/php-oauth-spotify
Stripe Packagist Travis chillerlan/php-oauth-stripe
Tumblr Packagist Travis chillerlan/php-oauth-tumblr
Twitch Packagist Travis chillerlan/php-oauth-twitch
Twitter Packagist Travis chillerlan/php-oauth-twitter
Twitter2 Packagist Travis chillerlan/php-oauth-twitter
Vimeo Packagist Travis chillerlan/php-oauth-vimeo
Wordpress Packagist Travis chillerlan/php-oauth-wordpress

PR welcome!

Installation

requires composer

composer.json (note: replace dev-master with a version boundary)

{
	"require": {
		"php": "^7.2",
		"chillerlan/php-oauth": "dev-master"
	}
}

If you plan to use encryption (via sodium), you may add "ext-sodium": "*".

Manual Installation

Download the desired version of the package from master or release and extract the contents to your project folder. After that:

  • run composer install to install the required dependencies and generate /vendor/autoload.php.
  • if you use a custom autoloader, point the namespace chillerlan\OAuth to the folder src of the package

Profit!