PHPackages                             caseyamcl/oauthsupport - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. caseyamcl/oauthsupport

Abandoned → [league/oauth2-client](/?search=league%2Foauth2-client)Library[Authentication &amp; Authorization](/categories/authentication)

caseyamcl/oauthsupport
======================

An OAUTH 2.0 Client Library

v1.0(13y ago)27.5kMITPHPPHP &gt;=5.3.0

Since Dec 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/caseyamcl/Oauthsupport)[ Packagist](https://packagist.org/packages/caseyamcl/oauthsupport)[ Docs](https://github.com/caseyamcl/Oauthsupport)[ RSS](/packages/caseyamcl-oauthsupport/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

OAuth Support
=============

[](#oauth-support)

**!! NOTICE !!:** This package has been abandoned. The author recommends you use [league/oauth2-client](https://packagist.org/packages/league/oauth2-client)instead

---

An OAuth 2.0 client library (draft 10 / specification 1), forked from [https://github.com/vznet/oauth\_2.0\_client\_php](https://github.com/vznet/oauth_2.0_client_php), written by Charron Pierrick and Berejeb Anis

LICENSE
-------

[](#license)

This Code is released under the GNU LGPL

Please do not change the header of the file(s).

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU Lesser General Public License for more details.

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

[](#installation)

Via composer/packagist:

```
require {
    ...
    'caseyamcl/Oauthsupport': 'dev-master'
}

```

Usage
-----

[](#usage)

This library includes an abstract class named 'AuthService', which can be extended to create OAuth 2.0 clients for specific services.

As an example, a Facebook and Google class are included in the code. These classes are fully functional, and can be used in production.

To create your own client, create a class that extends the **Oauth2\\AuthService**abstract class:

```
class MyOauthClient extends \Oauth2\AuthService
{
    /**
     * Get the Authorization URL
     *
     * @return string
     */
    public function getAuthUrl()
    {
        return "http://SOME/URL/To/Authorization/Endpoint";
    }

    /**
     * Get the token URL
     *
     * @return string
     */
    public function getTokenUrl()
    {
        return "http://SOME/URL/To/Token/Endpoint";
    }

    /**
     * Get info once logged-in
     *
     * @param string $accessToken
     * @return array  Array of info
     */
    public function getInfo($accessToken)
    {
        $infoUrl = 'http://SOME/URL/To/Api/Stuff';
        $this->client->setAccessToken($accessToken);
        return $this->client->get($infoUrl);
    }
}

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4951d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8db51cd614310a5de4822be9602de578e6d6dd2af7949d52fcd375ba2a8d1c74?d=identicon)[caseyamcl](/maintainers/caseyamcl)

---

Top Contributors

[![caseyamcl](https://avatars.githubusercontent.com/u/53035?v=4)](https://github.com/caseyamcl "caseyamcl (13 commits)")

---

Tags

clientAuthenticationoauthoauth 2.0

### Embed Badge

![Health badge](/badges/caseyamcl-oauthsupport/health.svg)

```
[![Health](https://phpackages.com/badges/caseyamcl-oauthsupport/health.svg)](https://phpackages.com/packages/caseyamcl-oauthsupport)
```

###  Alternatives

[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k147.0M281](/packages/league-oauth2-server)[cronofy/cronofy

SDK for Cronofy - the Scheduling Platform for Business

21817.1k](/packages/cronofy-cronofy)

PHPackages © 2026

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