Home

Awesome

chillerlan/php-oauth

A transparent, framework-agnostic, easily extensible PHP PSR-18 OAuth client with a user-friendly API, fully PSR-7/PSR-17 compatible.

PHP Version Support Packagist version License Continuous Integration CodeCov Codacy Packagist downloads Documentation

Overview

Features

Requirements

Documentation

Installation with composer

See the installation guide for more info!

Terminal

composer require chillerlan/php-oauth

composer.json

{
	"require": {
		"php": "^8.1",
		"chillerlan/php-oauth": "^1.0"
	}
}

Note: check the releases for valid versions.

Implemented Providers

<!-- TABLE-START --> <!-- this table is auto-created via /examples/create-description.php -->
ProviderkeysrevokeverUserCSRFPKCECCTRTI
Amazonlink2
BattleNetlinklink2
BigCartellinklink2
Bitbucketlink2
Codeberglinklink2
Deezerlinklink2
DeviantArtlinklink2
Discogslinklink1
Discordlink2
Flickrlinklink1
Foursquarelinklink2
Gitealinklink2
GitHublinklink2
GitLablink2
Googlelinklink2
GuildWars2linklink2
Imgurlinklink2
LastFMlinklink-
MailChimplink2
Mastodonlinklink2
MicrosoftGraphlinklink2
Mixcloudlinklink2
MusicBrainzlinklink2
NPROnelink2
OpenCachinglinklink1
OpenStreetmaplink1
OpenStreetmap2link2
Patreonlink2
PayPallink2
PayPalSandboxlink2
Pinterestlinklink2
Redditlinklink2
Slacklinklink2
SoundCloudlinklink2
Spotifylinklink2
Steamlink-
Stripelinklink2
Tumblrlinklink1
Tumblr2linklink2
Twitchlinklink2
Twitterlinklink1
TwitterCClinklink2
Vimeolinklink2
WordPresslinklink2
YouTubelinklink2

Legend:

<!-- TABLE-END -->

Disclaimer

OAuth tokens are secrets and should be treated as such. Store them in a safe place, consider encryption. <br/> I don't take responsibility for stolen OAuth tokens. Use at your own risk.

Privacy policy

This library does not store or process user data on its own - it only handles the OAuth flow for an application.<br/> Implementers are responsible for a proper privacy policy in accordance with the service providers.