PHPackages                             keeguon/oauth2-php - 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. keeguon/oauth2-php

ActiveLibrary

keeguon/oauth2-php
==================

A library to consume services using the OAuth 2 security scheme.

1.3.6(11y ago)3314.5k↓80%11[1 issues](https://github.com/Keeguon/oauth2-php/issues)2MITPHPPHP &gt;=5.4

Since Jan 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Keeguon/oauth2-php)[ Packagist](https://packagist.org/packages/keeguon/oauth2-php)[ Docs](https://github.com/Keeguon/oauth2-php)[ RSS](/packages/keeguon-oauth2-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (29)Used By (2)

OAuth2-PHP [![Build Status](https://camo.githubusercontent.com/efc5ac609fef453d18f9585411d3b910fdfd8ead66cfb4123b4d91657b677188/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4b656567756f6e2f6f61757468322d7068702e706e67)](http://travis-ci.org/Keeguon/oauth2-php)
=================================================================================================================================================================================================================================================================================

[](#oauth2-php-)

A PHP library aimed to consume services using OAuth 2 as a security scheme.

Dependencies
------------

[](#dependencies)

- PHP &gt;=5.3.2
- Guzzle

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

[](#installation)

### composer

[](#composer)

To install OAuth2-PHP with composer you simply need to create a composer.json in your project root and add:

```
{
    "require": {
        "keeguon/oauth2-php": ">=1.0.0"
    }
}
```

Then run

```
$ wget -nc http://getcomposer.org/composer.phar
$ php composer.phar install
```

You have now OAuth2-PHP installed in vendor/keeguon/oauth2-php

And an handy autoload file to include in you project in vendor/.composer/autoload.php

Testing
-------

[](#testing)

The library is fully tested with PHPUnit for unit tests. To run tests you need PHPUnit which can be installed using the project dependencies as follows:

```
$ php composer.phar install --dev
```

Then to run the test suites

```
$ vendor/bin/phpunit
```

License
-------

[](#license)

Copyright (c) 2012 Félix Bellanger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~39 days

Recently: every ~48 days

Total

27

Last Release

4224d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.3.2

1.3.0PHP &gt;=5.4

1.2.4PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c6474742b99d7e56d785de62350e9b8ed8a5d41956272ac62803d55a7bf4e41?d=identicon)[Keeguon](/maintainers/Keeguon)

---

Top Contributors

[![keeguon](https://avatars.githubusercontent.com/u/322354?v=4)](https://github.com/keeguon "keeguon (107 commits)")[![borfast](https://avatars.githubusercontent.com/u/4837?v=4)](https://github.com/borfast "borfast (1 commits)")[![cyrusdavid](https://avatars.githubusercontent.com/u/4394420?v=4)](https://github.com/cyrusdavid "cyrusdavid (1 commits)")[![Mordred](https://avatars.githubusercontent.com/u/29232?v=4)](https://github.com/Mordred "Mordred (1 commits)")[![tappleby](https://avatars.githubusercontent.com/u/1435253?v=4)](https://github.com/tappleby "tappleby (1 commits)")

---

Tags

oauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/keeguon-oauth2-php/health.svg)

```
[![Health](https://phpackages.com/badges/keeguon-oauth2-php/health.svg)](https://phpackages.com/packages/keeguon-oauth2-php)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[softonic/graphql-client

Softonic GraphQL client

1343.3M7](/packages/softonic-graphql-client)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[zoonman/linkedin-api-php-client

LinkedIn API PHP SDK with OAuth 2.0 &amp; CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.

127704.0k](/packages/zoonman-linkedin-api-php-client)[authbucket/oauth2-php

The standard compliant OAuth2.0 library based on the Symfony Components

82107.6k4](/packages/authbucket-oauth2-php)

PHPackages © 2026

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