PHPackages                             pear/http\_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. [HTTP &amp; Networking](/categories/http)
4. /
5. pear/http\_oauth

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

pear/http\_oauth
================

Implementation of the OAuth 1.0a specification.

0.3.2(10y ago)554.7k↓28.9%4BSD-2-ClausePHPPHP &gt;=5.1.2

Since Jan 8Pushed 3y ago13 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

HTTP\_OAuth - Implementation of the OAuth specification
=======================================================

[](#http_oauth---implementation-of-the-oauth-specification)

HTTP\_OAuth is a PEAR package implementing the OAuth 1.0a protocol. Consumer, Provier (request and response) classes are provided. See the Consumer examples below:

HTTP\_OAuth\_Consumer
---------------------

[](#http_oauth_consumer)

Main consumer class that assists consumers in establishing OAuth creditials and making OAuth requests.

### Example:

[](#example)

```
$consumer = new HTTP_OAuth_Consumer('key', 'secret');
$consumer->getRequestToken('http://example.com/oauth/request_token', $callback);

// Store tokens
$_SESSION['token']        = $consumer->getToken();
$_SESSION['token_secret'] = $consumer->getTokenSecret();

$url = $consumer->getAuthorizeUrl('http://example.com/oauth/authorize');
http_redirect($url); // function from pecl_http

// When they come back via the $callback url
$consumer = new HTTP_OAuth_Consumer('key', 'secret', $_SESSION['token'],
    $_SESSION['token_secret']);
$consumer->getAccessToken('http://example.com/oauth/access_token');

// Store tokens
$_SESSION['token']        = $consumer->getToken();
$_SESSION['token_secret'] = $consumer->getTokenSecret();

// $response is an instance of HTTP_OAuth_Consumer_Response
$response = $consumer->sendRequest('http://example.com/oauth/protected_resource');
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3783d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120511?v=4)[Michael Gauthier](/maintainers/gauthierm)[@gauthierm](https://github.com/gauthierm)

---

Top Contributors

[![jeffhodsdon](https://avatars.githubusercontent.com/u/40832?v=4)](https://github.com/jeffhodsdon "jeffhodsdon (44 commits)")[![shupp](https://avatars.githubusercontent.com/u/54022?v=4)](https://github.com/shupp "shupp (28 commits)")[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (24 commits)")[![joestump](https://avatars.githubusercontent.com/u/37667?v=4)](https://github.com/joestump "joestump (5 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (4 commits)")[![hypermkt](https://avatars.githubusercontent.com/u/1726225?v=4)](https://github.com/hypermkt "hypermkt (3 commits)")[![saltybeagle](https://avatars.githubusercontent.com/u/92284?v=4)](https://github.com/saltybeagle "saltybeagle (1 commits)")

---

Tags

httpoauth

### Embed Badge

![Health badge](/badges/pear-http-oauth/health.svg)

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

###  Alternatives

[samsonasik/apigility-consumer

Laminas API Tools Client API Service Consumer

151.6k](/packages/samsonasik-apigility-consumer)

PHPackages © 2026

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