PHPackages                             vclayton/unpecl-oauth - 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. vclayton/unpecl-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

vclayton/unpecl-oauth
=====================

Native PHP drop-in replacement for the PECL OAuth extension

v0.5.5(8y ago)4121.1k↓17.9%1[2 issues](https://github.com/vclayton/unpecl-oauth/issues)MITPHPPHP &gt;=5.1.0

Since Sep 30Pushed 8y ago2 watchersCompare

[ Source](https://github.com/vclayton/unpecl-oauth)[ Packagist](https://packagist.org/packages/vclayton/unpecl-oauth)[ Docs](https://github.com/vclayton/unpecl-oauth)[ RSS](/packages/vclayton-unpecl-oauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

unpecl-oauth
============

[](#unpecl-oauth)

Native PHP drop-in replacement for the PECL OAuth extension

[![Build Status](https://camo.githubusercontent.com/1e4ba5cac3d3d03d6b852f992ff36ed2922ee3cd1ff0458bc134e258d047becd/68747470733a2f2f7472617669732d63692e6f72672f76636c6179746f6e2f756e7065636c2d6f617574682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vclayton/unpecl-oauth)

### Debugging Info

[](#debugging-info)

There is a static OAuth::getDebugInfo() method that will return details about the most recent request. There will only be debug info if enableDebug() has been called.

```
/**
 * Returns debug info about the most recent fetch.
 * If no fetch has happened, debug info will be empty.
 * @param string $key  If given, return specific entry from debug info. Key is one of 'lastResponse', 'lastResponseInfo', 'lastResponseCode', or 'lastHeader'.
 * @return mixed  Returns a key/value array if key is not given, otherwise returns the specific key requested. If the key is not set, returns null.
 */
public static function getDebugInfo($key=null)

```

### Running tests

[](#running-tests)

The unmodified upstream PECL tests are in tests/upstream. The `runtests` script patches and munges them into a more phpunit-friendly form, then runs them.

### TODO

[](#todo)

- The OAuthProvider class has no upstream compliance tests, so it is not yet implemented.
- The setRequestEngine() call is currently ignored, only Curl is implemented.

### Notes

[](#notes)

How to checkout the source code for the PECL OAuth extension: `svn co https://svn.php.net/repository/pecl/oauth`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~196 days

Recently: every ~145 days

Total

6

Last Release

3266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11767c5b853f8475665c2bde74bd52a71a78607901784697b8b06b93388f679d?d=identicon)[vclayton](/maintainers/vclayton)

---

Top Contributors

[![vclayton](https://avatars.githubusercontent.com/u/308016?v=4)](https://github.com/vclayton "vclayton (15 commits)")

---

Tags

oauthpecl

### Embed Badge

![Health badge](/badges/vclayton-unpecl-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/vclayton-unpecl-oauth/health.svg)](https://phpackages.com/packages/vclayton-unpecl-oauth)
```

###  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.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

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

OAuth 1.0 Client Library

99898.8M106](/packages/league-oauth1-client)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84016.7M61](/packages/knpuniversity-oauth2-client-bundle)[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42542.0M544](/packages/socialiteproviders-manager)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

42121.2M118](/packages/league-oauth2-google)

PHPackages © 2026

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