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

ActiveLibrary

raysolomon/php-oauth-client
===========================

PHP OAuth 1.0a Client

1.0.0(7y ago)017MITPHP

Since Dec 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RaySolomon/php-oauth-client)[ Packagist](https://packagist.org/packages/raysolomon/php-oauth-client)[ RSS](/packages/raysolomon-php-oauth-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Minimum PHP Version](https://camo.githubusercontent.com/b52c83f3d45755ebcb1e6863ebb202ab192aaf773424369ffdeedae107f027ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)

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

[](#php-oauth-client)

A PHP OAuth 1.0 Client refactored to use PSR-4 namespacing and installable with composer.

[raysolomon/php-oauth-client](https://packagist.org/packages/raysolomon/php-oauth-client) (Packagist)

```
composer require raysolomon/php-oauth-client
```

How do I implement this?
------------------------

[](#how-do-i-implement-this)

Here is a two-legged auth example for the Yahoo Boss Web search api

```
$clientId = ''; // fill in this
$clientSecret = '';  // fill in this

$consumer = new \RaySolomon\OAuthClient\OAuthConsumer($clientId, $clientSecret);

$url = "https://yboss.yahooapis.com/ysearch/web";

$query = 'Automotive Tune Up Service Mesa, AZ';

$args = [];
$args["q"] = $query;
$args["format"] = "json";
$args["count"] = 10;
$args["start"] = 0;

$request = \RaySolomon\OAuthClient\OAuthRequest::from_consumer_and_token($consumer, null, "GET", $url, $args);
$request->sign_request(new \RaySolomon\OAuthClient\OAuthSignatureMethod_HMAC_SHA1(), $consumer, null);
$url = sprintf("%s?%s", $url, \RaySolomon\OAuthClient\OAuthUtil::build_http_query($args));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, 'MyUserAgent/1.2.1 (+https://www.example.com/bot.html)');
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_DNS_CACHE_TIMEOUT, 600);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 600);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER,
    array(
        $request->to_header()
    )
);
$response = curl_exec($ch);
if (curl_errno($ch)) {
    throw new \Exception('YahooBoss: ' .
        sprintf('Request failed: (%d) %s.', curl_errno($ch), curl_error($ch)));
}
curl_close($ch);
var_dump($response);
```

Output of var\_dump($response)

```
string(6202) "{"bossresponse":{"responsecode":"200","web":{"start":"0","count":"10","totalresults":"6110000","results":[{"date":"","clickurl":"https:\/\/www.faithworksauto.com\/auto-tune-up-service","url":"https:\/\/www.faithworksauto.com\/auto-tune-up-service","dispurl":"https:\/\/www.faithworksauto.com\/auto-tune-up-service","title":"Auto Tune Up Service in Mesa AZ | Faith Works Automotive","abstract":"Auto Tune up Service Faith Works Automotive knows that a regular tune-up is important to your car's performance. Following your manufacturers tune-up schedule will extend the life of your car and will reduce the overall cost to maintain your car."},{"date":"","clickurl":"https:\/\/www.mechanicadvisor.com\/az\/mesa\/tune-up","url":"https:\/\/www.mechanicadvisor.com\/az\/mesa\/tune-up","dispurl":"https:\/\/www.mechanicadvisor.com\/az\/mesa\/tune-up","title":"10 Best Mesa, AZ Tune up Shops - Mechanic Advisor","abstract":"Find Mesa,AZ Tune up shops for your repair needs. Review Mesa repair shops that specialize in Tune up. ... Terrys Auto Repair and Service at 1625 N 40th St was ..."},{"date":"","clickurl":"https:\/\/www.yellowpages.com\/mesa-az\/automotive-tune-up-service","url":"https:\/\/www.yellowpages.com\/mesa-az\/automotive-tune-up-service","dispurl":"https:\/\/www.yellowpages.com\/mesa-az\/automotive-tune-up...","title":"Automotive Tune Up Service in Mesa, AZ - Yellowpages.com","abstract":"Automotive Tune Up Service in Mesa on YP.com. See reviews, photos, directions, phone numbers and more for the best Automotive Tune Up Service in Mesa, AZ."},{"date":"","clickurl":"https:\/\/www.yellowpages.com\/apache-junction-az\/automotive-tune-up-service","url":"https:\/\/www.yellowpages.com\/apache-junction-az\/automotive-tune-up-service","dispurl":"https:\/\/www.yellowpages.com\/...\/automotive-tune-up-service","title":"Best 30 Automotive Tune Up Service in Apache Junction, AZ ...","abstract":"Automotive Tune Up Service in Apache Junction on YP.com. See reviews, photos, directions, phone numbers and more for the best Automotive Tune Up Service in Apache Junction, AZ. Start your search by typing in the business name below."},{"date":"","clickurl":"https:\/\/crawfordsautoservice.com\/","url":"https:\/\/crawfordsautoservice.com\/","dispurl":"https:\/\/crawfordsautoservice.com","title":"Crawfords Auto Repair Mesa AZ 85210, Quality Car Care","abstract":"Crawford's Auto Repair Mesa AZ 85210 85202 85233 85225 85224 is an auto service mechanic shop offering comprehensive services for car maintenance and repair"},{"date":"","clickurl":"https:\/\/gunnellstiresandservice.com\/automotive-tune-up-mesa-az","url":"https:\/\/gunnellstiresandservice.com\/automotive-tune-up-mesa-az","dispurl":"https:\/\/gunnellstiresandservice.com\/automotive-tune-up...","title":"Automotive Tune Ups in Mesa, AZ | Gunnell's Tires &amp; Service","abstract":"Tune Up in Mesa, AZ Tune-ups can extend the life of your vehicle by replacing engine parts that are vulnerable to deteriorating. The majority of automobiles need to have tune ups every 30,000 miles."},{"date":"","clickurl":"https:\/\/www.bullittautomotive.com\/engine-tune-up-service\/","url":"https:\/\/www.bullittautomotive.com\/engine-tune-up-service\/","dispurl":"https:\/\/www.bullittautomotive.com\/engine-tune-up-service","title":"Engine Tune Up Service | Car Tune Up Tempe, AZ - Bullitt ...","abstract":"Engine Tune Up Service. At the heart of your vehicle is the engine, is it time for an for a Engine Tune Up Service. Over time, all the different components of your engine can wear out and make your vehicle lose fuel efficiency and power."},{"date":"","clickurl":"https:\/\/www.highlinecarcare.com\/","url":"https:\/\/www.highlinecarcare.com\/","dispurl":"https:\/\/www.highlinecarcare.com","title":"Auto Repair Shop in Mesa, AZ 85210 | Highline Car Care","abstract":"A Mesa auto repair shop servicing all vehicle makes and models. We are locally owned and provide the right service at the right time! Highline Car Car is best auto repair shop serving Mesa, AZ and the surrounding valley."},{"date":"","clickurl":"https:\/\/allbrandsauto.com\/service\/","url":"https:\/\/allbrandsauto.com\/service\/","dispurl":"https:\/\/allbrandsauto.com\/service","title":"Auto Services &amp; Maintenance in Mesa AZ - All Brands Auto","abstract":"Auto Services &amp; Maintenance in Mesa AZ. Our All Brands Auto shop may be in a tough place because of the light rail construction going on on Main Street, but that shouldn’t stop you from checking us out."},{"date":"","clickurl":"https:\/\/www.mechanicadvisor.com\/az\/apache-junction\/tune-up","url":"https:\/\/www.mechanicadvisor.com\/az\/apache-junction\/tune-up","dispurl":"https:\/\/www.mechanicadvisor.com\/az\/apache-junction\/tune-up","title":"10 Best Apache Junction, AZ Tune up Shops - Mechanic Advisor","abstract":"Tune up in Apache Junction. ... AZ auto tune up . ... Friendly Auto Centers at 5026 E Main St was recently discovered under Mesa Honda CR-V auto service."}]}}}"
```

Maintainers
-----------

[](#maintainers)

[@RaySolomon](https://github.com/raysolomon)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

2717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0c88c85bb24da351c10fddbb50a976da957a87f06e64734fec7c1fa95466daf?d=identicon)[RaySolomon](/maintainers/RaySolomon)

---

Top Contributors

[![TheSkallywag](https://avatars.githubusercontent.com/u/657522?v=4)](https://github.com/TheSkallywag "TheSkallywag (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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