2017 © Pedro Pelรกez
 

library php-oauth

A PHP7.2+ OAuth1/2 and API client

image

chillerlan/php-oauth

A PHP7.2+ OAuth1/2 and API client

  • Tuesday, July 3, 2018
  • by codemasher
  • Repository
  • 1 Watchers
  • 4 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 10 Versions
  • 4 % Grown

The README.md

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., (*1)

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

Overview

Features

Requirements

  • PHP 8.1+
    • extensions: json, sodium
      • from dependencies: curl, fileinfo, intl, mbstring, simplexml, zlib
  • a PSR-18 compatible HTTP client library of your choice
  • PSR-17 compatible RequestFactory, StreamFactory and UriFactory

Documentation

Installation with composer

See the installation guide for more info!, (*3)

Terminal

composer require chillerlan/php-oauth

composer.json

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

Note: check the releases for valid versions., (*4)

Implemented Providers

, (*5)

Provider keys revoke ver User CSRF PKCE CC TR TI
Amazon link 2 โœ“ โœ“ โœ“
BattleNet link link 2 โœ“ โœ“ โœ“
BigCartel link link 2 โœ“ โœ“ โœ“
Bitbucket link 2 โœ“ โœ“ โœ“ โœ“
Codeberg link 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 โœ“
Gitea 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 โœ“ โœ“ โœ“ โœ“
Pinterest link link 2 โœ“ โœ“ โœ“
Reddit link link 2 โœ“ โœ“ โœ“ โœ“ โœ“
Slack link link 2 โœ“ โœ“
SoundCloud link link 2 โœ“ โœ“ โœ“
Spotify link link 2 โœ“ โœ“ โœ“ โœ“ โœ“
Steam 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 โœ“ โœ“ โœ“ โœ“

Legend: - Provider: the name of the provider class and link to their API documentation - keys: links to the provider's OAuth application creation page - revoke: links to the OAuth application access revocation page in the provider's user profile - ver: the OAuth version(s) supported by the provider - User: indicates that the provider offers information about the currently authenticated user via the me() method (implements the UserInfo interface) - CSRF: indicates that the provider uses CSRF protection via the state parameter (implements the CSRFToken interface) - PKCE: indicates that the provider supports Proof Key for Code Exchange (implements the PKCE interface) - CC: indicates that the provider supports the Client Credentials Grant (implements the ClientCredentials interface) - TR: indicates that the provider is capable of refreshing an access token (implements the TokenRefresh interface) - TI: indicates that the provider is capable of revoking/invalidating an access token (implements the TokenInvalidate interface) , (*6)

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., (*7)

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., (*8)

The Versions

04/04 2018

v2.0.x-dev

2.0.9999999.9999999-dev https://github.com/chillerlan/php-oauth

A PHP7.2+ OAuth1/2 and API client

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

29/01 2018
23/01 2018

2.0.2

2.0.2.0 https://github.com/chillerlan/php-oauth

A PHP7.2+ OAuth1/2 and API client

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

03/01 2018

2.0.1

2.0.1.0

An Oauth library for PHP7+.

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

31/12 2017

2.0.0

2.0.0.0

An Oauth library for PHP7+.

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

23/11 2017

1.2.0

1.2.0.0

An Oauth library for PHP7+.

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

17/07 2017

1.1.0

1.1.0.0

An Oauth library for PHP7+.

  Sources   Download

MIT

The Requires

 

The Development Requires

oauth client oauth2 instagram twitter github soundcloud spotify vimeo last.fm twitch discogs gitter

06/02 2017

1.0.1

1.0.1.0

An Oauth library for PHP7+. Loosely based on Lusitanian/PHPoAuthLib.

  Sources   Download

MIT

The Requires

  • php >=7.0.7

 

The Development Requires

oauth oauth2

19/07 2016

1.0.0

1.0.0.0

An Oauth library for PHP7+. Loosely based on Lusitanian/PHPoAuthLib.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

oauth oauth2