chillerlan / php-oauth-providers
OAuth 1/2 Provider implementations for chillerlan/php-oauth-core. PHP 7.4+
Fund package maintenance!
Ko Fi
www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- chillerlan/php-oauth-core: ^4.0
- psr/http-client: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- chillerlan/php-dotenv: ^2.1
- chillerlan/php-prototype-dom: ^3.0.1
- guzzlehttp/guzzle: ^7.3
- phan/phan: ^4.0
- phpunit/phpunit: ^9.5
README
Documentation
See the wiki for advanced documentation.
Requirements
- 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
For documentation of the core components see chillerlan/php-oauth-core
.
Installation
requires composer
composer.json
(note: replace dev-main
with a version boundary)
{ "require": { "php": "^7.4 || ^8.0", "chillerlan/php-oauth-providers": "dev-main" } }
Profit!
Supported Providers
A list of already implemented Providers.
Provider | API keys | revoke access | OAuth | ClientCredentials |
---|---|---|---|---|
Amazon | link | 2 | ||
BattleNet | link | link | 2 | ✓ |
BigCartel | link | link | 2 | |
Bitbucket | link | 2 | ✓ | |
Deezer | link | link | 2 | |
DeviantArt | link | link | 2 | ✓ |
Discogs | link | link | 1 | |
Discord | link | 2 | ✓ | |
Flickr | link | link | 1 | |
Foursquare | link | link | 2 | |
GitHub | link | link | 2 | |
GitLab | link | 2 | ✓ | |
Gitter | link | 2 | ||
link | link | 2 | ||
Youtube | link | link | 2 | |
GuildWars2 | link | link | 2 | |
Imgur | link | link | 2 | |
link | link | 2 | ||
LastFM | link | link | - | |
MailChimp | link | 2 | ||
Mastodon | link | 2 | ||
MicrosoftGraph | link | link | 2 | |
Mixcloud | link | link | 2 | |
MusicBrainz | link | link | 2 | |
NPROne | link | 2 | ||
OpenCaching | link | link | 1 | |
OpenStreetmap | link | 1 | ||
Patreon1 | link | 2 | ||
Patreon2 | link | 2 | ||
PayPal | link | 2 | ✓ | |
PayPalSandbox | link | 2 | ✓ | |
Slack | link | link | 2 | |
SoundCloud | link | link | 2 | |
Spotify | link | link | 2 | ✓ |
SteamOpenID | link | - | ||
Stripe | link | link | 2 | |
Tumblr | link | link | 1 | |
Twitch | link | link | 2 | ✓ |
link | link | 1 | ||
TwitterCC | link | link | 2 | ✓ |
Vimeo | link | link | 2 | ✓ |
Wordpress | link | link | 2 |
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.