2017 © Pedro Pelรกez
 

library php-oauth-core

A PHP7.2+ OAuth client core library

image

chillerlan/php-oauth-core

A PHP7.2+ OAuth client core library

  • Saturday, June 2, 2018
  • by codemasher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 254 Installations
  • PHP
  • 19 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

chillerlan/php-oauth-core

ATTENTION: This library has been abandoned and archive in favor of chillerlan/php-oauth, (*1)

A framework.agnostic PHP OAuth1/2 client that acts as a PSR-18 HTTP client, fully PSR-7/PSR-17 compatible., (*2)

PHP Version Support ![Packagist version][packagist-badge] License ![Continuous Integration][gh-action-badge] ![CodeCov][coverage-badge] ![Codacy][codacy-badge] ![Packagist downloads][downloads-badge], (*3)

Documentation

https://php-oauth.readthedocs.io/, (*4)

An API documentation created with phpDocumentor can be found at https://chillerlan.github.io/php-oauth-core/ (WIP). See the wiki for advanced documentation and chillerlan/php-oauth-providers for already implemented providers., (*5)

Requirements

  • PHP 8.1+
    • extensions: curl, json, simplexml, sodium, zlib
  • a PSR-18 compatible HTTP client library of your choice
  • PSR-17 compatible Request-, Response- and UriFactories

Installation

requires composer, (*6)

composer.json (note: replace dev-main with a version boundary, e.g. ^5.0), (*7)

{
    "require": {
        "php": "^8.1",
        "chillerlan/php-oauth-core": "dev-main"
    }
}

In case you want to keep using dev-main, specify the hash of a commit to avoid running into unforeseen issues like so: dev-main#ff85785139b9531a6c29d41cc161e4878d54491d, (*8)

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 | โœ“ | | Google | link | link | 2 | | | GuildWars2 | link | link | 2 | | | Imgur | link | link | 2 | | | LastFM | link | link | - | | | MailChimp | link | | 2 | | | Mastodon | link | link | 2 | | | MicrosoftGraph | link | link | 2 | | | Mixcloud | link | link | 2 | | | MusicBrainz | link | link | 2 | | | NPROne | link | | 2 | | | OpenCaching | link | link | 1 | | | OpenStreetmap | link | | 1 | | | OpenStreetmap2 | link | | 2 | | | Patreon | 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 | | | Tumblr2 | link | link | 2 | | | Twitch | link | link | 2 | โœ“ | | Twitter | link | link | 1 | | | TwitterCC | link | link | 2 | โœ“ | | Vimeo | link | link | 2 | โœ“ | | WordPress | link | link | 2 | | | YouTube | link | link | 2 | | , (*9)

Profit!, (*10)

Disclaimer

OAuth tokens are secrets and should be treated as such. Store them in a safe place, consider encryption. br/ I won't take responsibility for stolen auth tokens. Use at your own risk., (*11)

The Versions