PHPackages                             chillerlan/php-oauth-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. chillerlan/php-oauth-core

Abandoned → [chillerlan/php-oauth](/?search=chillerlan%2Fphp-oauth)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

chillerlan/php-oauth-core
=========================

A PHP OAuth client core library

4.0.0(5y ago)86.8k↓85.7%11MITPHPPHP ^7.4 || ^8.0

Since Apr 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chillerlan/php-oauth-core)[ Packagist](https://packagist.org/packages/chillerlan/php-oauth-core)[ Docs](https://github.com/chillerlan/php-oauth-core)[ Fund](https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4)[ Fund](https://ko-fi.com/codemasher)[ RSS](/packages/chillerlan-php-oauth-core/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (6)Versions (13)Used By (1)

chillerlan/php-oauth-core
=========================

[](#chillerlanphp-oauth-core)

**ATTENTION: This library has been abandoned and archive in favor of [chillerlan/php-oauth](https://github.com/chillerlan/php-oauth)**

A framework.agnostic PHP OAuth1/2 client that acts as a [PSR-18](https://www.php-fig.org/psr/psr-18/) HTTP client, fully [PSR-7](https://www.php-fig.org/psr/psr-7/)/[PSR-17](https://www.php-fig.org/psr/psr-17/) compatible.

[![PHP Version Support](https://camo.githubusercontent.com/d33fe5ff31802fc033b94e523eb990401863f8a69316ccd4069a5e93f3dd05fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368696c6c65726c616e2f7068702d6f617574682d636f72653f6c6f676f3d70687026636f6c6f723d383839324246)](https://www.php.net/supported-versions.php)[![Packagist version](https://camo.githubusercontent.com/6c1c92c06aa39b91cfd6ae4bd1874c71deee854b3eeb4ebae2998f56cb890bd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c6c65726c616e2f7068702d6f617574682d636f72652e7376673f6c6f676f3d7061636b6167697374)](https://packagist.org/packages/chillerlan/php-oauth-core)[![License](https://camo.githubusercontent.com/05f7cc3dfd51a04362bcd9d5f3bc7072dcfd5e2125cd2b12fce409febcada8e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368696c6c65726c616e2f7068702d6f617574682d636f72652e737667)](https://github.com/chillerlan/php-oauth-core/blob/main/LICENSE)[![Continuous Integration](https://camo.githubusercontent.com/9a37703526e8715660e1ec5b8ccfe174e6610bd1329eab4ccf53922bbe4cfcf9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368696c6c65726c616e2f7068702d6f617574682d636f72652f63692e796d6c3f6272616e63683d6d61696e266c6f676f3d676974687562)](https://github.com/chillerlan/php-oauth-core/actions/workflows/ci.yml?query=branch%3Amain)[![CodeCov](https://camo.githubusercontent.com/6955ff620b9f991fab78cdc843e343c2f22193e3defe87a90d1516717309b581/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6368696c6c65726c616e2f7068702d6f617574682d636f72652e7376673f6c6f676f3d636f6465636f76)](https://codecov.io/github/chillerlan/php-oauth-core)[![Codacy](https://camo.githubusercontent.com/1948d897f612421b11a229bde8456d40f07e3c2a9d84aa622f5bf29406930670/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f64653937313538386639613434663161393965376262643261303733373935313f6c6f676f3d636f64616379)](https://app.codacy.com/gh/chillerlan/php-oauth-core/dashboard)[![Packagist downloads](https://camo.githubusercontent.com/8f3b9bf1cb54ebec8d5c621f05a1c5515f2a84312ad1e7d64d0bd8c7ee5e83b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c6c65726c616e2f7068702d6f617574682d636f72652e7376673f6c6f676f3d7061636b6167697374)](https://packagist.org/packages/chillerlan/php-oauth-core/stats)

Documentation
=============

[](#documentation)

An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can be found at  (WIP). See [the wiki](https://github.com/chillerlan/php-oauth-core/wiki) for advanced documentation and [`chillerlan/php-oauth-providers`](https://github.com/chillerlan/php-oauth-providers) for already implemented providers.

Requirements
------------

[](#requirements)

- PHP 8.1+
    - extensions: `curl`, `json`, `simplexml`, `sodium`, `zlib`
- a [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible HTTP client library of your choice
- [PSR-17](https://www.php-fig.org/psr/psr-17/) compatible Request-, Response- and UriFactories

Installation
------------

[](#installation)

**requires [composer](https://getcomposer.org)**

`composer.json` (note: replace `dev-main` with a [version boundary](https://getcomposer.org/doc/articles/versions.md), e.g. `^5.0`)

```
{
	"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`

Implemented Providers
---------------------

[](#implemented-providers)

ProviderAPI keysrevoke accessOAuth`ClientCredentials`[Amazon](https://login.amazon.com/)[link](https://sellercentral.amazon.com/hz/home)2[BattleNet](https://develop.battle.net/documentation)[link](https://develop.battle.net/access/clients)[link](https://account.blizzard.com/connections)2✓[BigCartel](https://developers.bigcartel.com/api/v1)[link](https://bigcartel.wufoo.com/forms/big-cartel-api-application/)[link](https://my.bigcartel.com/account)2[Bitbucket](https://developer.atlassian.com/bitbucket/api/2/reference/)[link](https://developer.atlassian.com/apps/)2✓[Deezer](https://developers.deezer.com/api)[link](http://developers.deezer.com/myapps)[link](https://www.deezer.com/account/apps)2[DeviantArt](https://www.deviantart.com/developers/)[link](https://www.deviantart.com/developers/apps)[link](https://www.deviantart.com/settings/applications)2✓[Discogs](https://www.discogs.com/developers/)[link](https://www.discogs.com/settings/developers)[link](https://www.discogs.com/settings/applications)1[Discord](https://discordapp.com/developers/)[link](https://discordapp.com/developers/applications/)2✓[Flickr](https://www.flickr.com/services/api/)[link](https://www.flickr.com/services/apps/create/)[link](https://www.flickr.com/services/auth/list.gne)1[Foursquare](https://developer.foursquare.com/docs)[link](https://foursquare.com/developers/apps)[link](https://foursquare.com/settings/connections)2[GitHub](https://developer.github.com/)[link](https://github.com/settings/developers)[link](https://github.com/settings/applications)2[GitLab](https://docs.gitlab.com/ee/api/README.html)[link](https://gitlab.com/profile/applications)2✓[Google](https://developers.google.com/oauthplayground/)[link](https://console.developers.google.com/apis/credentials)[link](https://myaccount.google.com/permissions)2[GuildWars2](https://wiki.guildwars2.com/wiki/API:Main)[link](https://account.arena.net/applications)[link](https://account.arena.net/applications)2[Imgur](https://apidocs.imgur.com)[link](https://api.imgur.com/oauth2/addclient)[link](https://imgur.com/account/settings/apps)2[LastFM](https://www.last.fm/api/)[link](https://www.last.fm/api/account/create)[link](https://www.last.fm/settings/applications)-[MailChimp](https://developer.mailchimp.com/)[link](https://admin.mailchimp.com/account/oauth2/)2[Mastodon](https://docs.joinmastodon.org/api/)[link](https://mastodon.social/settings/applications)[link](https://mastodon.social/oauth/authorized_applications)2[MicrosoftGraph](https://docs.microsoft.com/graph/overview)[link](https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)[link](https://account.live.com/consent/Manage)2[Mixcloud](https://www.mixcloud.com/developers/)[link](https://www.mixcloud.com/developers/create/)[link](https://www.mixcloud.com/settings/applications/)2[MusicBrainz](https://musicbrainz.org/doc/Development)[link](https://musicbrainz.org/account/applications)[link](https://musicbrainz.org/account/applications)2[NPROne](https://dev.npr.org/api/)[link](https://dev.npr.org/console)2[OpenCaching](https://www.opencaching.de/okapi/)[link](https://www.opencaching.de/okapi/signup.html)[link](https://www.opencaching.de/okapi/apps/)1[OpenStreetmap](https://wiki.openstreetmap.org/wiki/API)[link](https://www.openstreetmap.org/user/%7BUSERNAME%7D/oauth_clients)1[OpenStreetmap2](https://wiki.openstreetmap.org/wiki/API)[link](https://www.openstreetmap.org/oauth2/applications)2[Patreon](https://docs.patreon.com/)[link](https://www.patreon.com/portal/registration/register-clients)2[PayPal](https://developer.paypal.com/docs/connect-with-paypal/reference/)[link](https://developer.paypal.com/developer/applications/)2✓[PayPalSandbox](https://developer.paypal.com/docs/connect-with-paypal/reference/)[link](https://developer.paypal.com/developer/applications/)2✓[Slack](https://api.slack.com)[link](https://api.slack.com/apps)[link](https://slack.com/apps/manage)2[SoundCloud](https://developers.soundcloud.com/)[link](https://soundcloud.com/you/apps)[link](https://soundcloud.com/settings/connections)2✓[Spotify](https://developer.spotify.com/documentation/web-api/)[link](https://developer.spotify.com/dashboard)[link](https://www.spotify.com/account/apps/)2✓[SteamOpenID](https://developer.valvesoftware.com/wiki/Steam_Web_API)[link](https://steamcommunity.com/dev/apikey)-[Stripe](https://stripe.com/docs/api)[link](https://dashboard.stripe.com/apikeys)[link](https://dashboard.stripe.com/account/applications)2[Tumblr](https://www.tumblr.com/docs/en/api/v2)[link](https://www.tumblr.com/oauth/apps)[link](https://www.tumblr.com/settings/apps)1[Tumblr2](https://www.tumblr.com/docs/en/api/v2)[link](https://www.tumblr.com/oauth/apps)[link](https://www.tumblr.com/settings/apps)2[Twitch](https://dev.twitch.tv/docs/api/reference/)[link](https://dev.twitch.tv/console/apps/create)[link](https://www.twitch.tv/settings/connections)2✓[Twitter](https://developer.twitter.com/docs)[link](https://developer.twitter.com/apps)[link](https://twitter.com/settings/applications)1[TwitterCC](https://developer.twitter.com/en/docs/basics/authentication/overview/application-only)[link](https://developer.twitter.com/apps)[link](https://twitter.com/settings/applications)2✓[Vimeo](https://developer.vimeo.com)[link](https://developer.vimeo.com/apps)[link](https://vimeo.com/settings/apps)2✓[WordPress](https://developer.wordpress.com/docs/api/)[link](https://developer.wordpress.com/apps/)[link](https://wordpress.com/me/security/connected-applications)2[YouTube](https://developers.google.com/oauthplayground/)[link](https://console.developers.google.com/apis/credentials)[link](https://myaccount.google.com/permissions)2Profit!

Disclaimer
==========

[](#disclaimer)

OAuth tokens are secrets and should be treated as such. Store them in a safe place, [consider encryption](http://php.net/manual/book.sodium.php).
I won't take responsibility for stolen auth tokens. Use at your own risk.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~108 days

Recently: every ~195 days

Total

11

Last Release

1902d ago

Major Versions

1.1.0 → 2.0.02019-02-23

2.1.1 → 3.0.02019-11-11

3.0.0 → 4.0.02021-04-14

PHP version history (2 changes)1.0.0PHP ^7.2

4.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/592497?v=4)[smiley](/maintainers/codemasher)[@codemasher](https://github.com/codemasher)

---

Top Contributors

[![codemasher](https://avatars.githubusercontent.com/u/592497?v=4)](https://github.com/codemasher "codemasher (444 commits)")

---

Tags

let-php5-dieoauthoauth-clientoauth1oauth2phpphp-libraryphp5-is-deadphp7-is-deadphp8psr-17psr-18psr-7rfc5849rfc6749sodiumpsr-7clientpsr-17psr-18Authenticationoauthoauth2authorizationoauth1rfc6749rfc5849

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chillerlan-php-oauth-core/health.svg)

```
[![Health](https://phpackages.com/badges/chillerlan-php-oauth-core/health.svg)](https://phpackages.com/packages/chillerlan-php-oauth-core)
```

###  Alternatives

[chillerlan/php-oauth

A fully transparent, framework agnostic PSR-18 OAuth client.

4111.4k2](/packages/chillerlan-php-oauth)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.8k6](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
