PHPackages                             gponster/oauth-client - 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. gponster/oauth-client

ActiveLibrary

gponster/oauth-client
=====================

Simple OAuth 1 client based-on PHP 5.3+ oAuth 1/2 Client Library https://github.com/Lusitanian/PHPoAuthLib

09PHP

Since Jan 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

oauth-client
============

[](#oauth-client)

- **Author**: Gponster

Simple OAuth 1 client based-on PHP 5.3+ oAuth 1/2 Client Library.

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

[](#installation)

Firstly you want to include this package in your composer.json file.

```
"require": {
		"gponster/oauth-client": "dev-master"
}

```

Now you'll want to update or install via composer.

```
composer update

```

Configuration is pretty easy too, include vendor/autoload.php:

require\_once ('path/to/vendor/autoload.php');

Using existing Client or create your own consumer class:

```
$client = \Gponster\OAuth\Client::make(
	[
		'client_id' => 'a7xxxxx',
		'client_secret' => '9bwxxxx',
		'base_url' => 'https://api.xxx.com/v1'
	]);

$ret = $client->requestZeroLeg('/users/stats', 'POST',
	[
		'event' => $event, 'role_id' => $post['role_id'],
		'account' => $post['pname'], 'ip' => $post['ip'],
		'plat' => PLAT_NAME
	]);
```

The options to create Client instance

$options\['storage'\] class implement TokenStorageInterface $options\['http\_client'\] class implement ClientInterface $options\['user\_agent'\] User Agent

$options\['callback\_url'\] callback URL default 'oob' $options\['access\_token\_url'\] $options\['authorize\_url'\] $options\['request\_token\_url'\]

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73e98ec083d371aa676520ae5082802286bf074570a8c54debb8a1ea18c294ad?d=identicon)[gponster](/maintainers/gponster)

### Embed Badge

![Health badge](/badges/gponster-oauth-client/health.svg)

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

PHPackages © 2026

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