PHPackages                             stevenmaguire/oauth2-yelp - 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. stevenmaguire/oauth2-yelp

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

stevenmaguire/oauth2-yelp
=========================

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

0.1.0(9y ago)218.6k↓22.2%1MITPHP

Since May 17Pushed 9y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Yelp Provider for OAuth 2.0 Client
==================================

[](#yelp-provider-for-oauth-20-client)

[![Latest Version](https://camo.githubusercontent.com/9f8eff1fa9aff77614cc57eec78981d0c1d14542dac3c1154dab10446bb02c39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73746576656e6d6167756972652f6f61757468322d79656c702e7376673f7374796c653d666c61742d737175617265)](https://github.com/stevenmaguire/oauth2-yelp/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c88cd85026558a8d0d944d123e12fabf9f12dcd87700590964c78c7b7e831e3a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73746576656e6d6167756972652f6f61757468322d79656c702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/stevenmaguire/oauth2-yelp)[![Coverage Status](https://camo.githubusercontent.com/3b6fe3139ee4613b5e00c095f79ae928b3d1173d53d5c53092f9a687de6f0137/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73746576656e6d6167756972652f6f61757468322d79656c702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-yelp/code-structure)[![Quality Score](https://camo.githubusercontent.com/5bb6dccb9ea4fc896aeec9a9d451e957bff02c90e2e33bce04db5e5698f5fb85/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73746576656e6d6167756972652f6f61757468322d79656c702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-yelp)[![Total Downloads](https://camo.githubusercontent.com/3f809d6a0f4b4e3830597aeafaa3c52f66cd2786b830f5480bfb68cabbe6172b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746576656e6d6167756972652f6f61757468322d79656c702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stevenmaguire/oauth2-yelp)

This package provides Yelp OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

To install, use composer:

```
composer require stevenmaguire/oauth2-yelp

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Stevenmaguire\OAuth2\Client\Provider\Yelp` as the provider.

### Client Credentials Flow

[](#client-credentials-flow)

```
$provider = new Stevenmaguire\OAuth2\Client\Provider\Yelp([
    'clientId'          => '{yelp-client-id}',
    'clientSecret'      => '{yelp-client-secret}'
]);

try {

    // Try to get an access token using the client credentials grant.
    $accessToken = $provider->getAccessToken('client_credentials');

} catch (\League\OAuth2\Client\Provider\Exception\IdentityProviderException $e) {

    // Failed to get the access token
    exit($e->getMessage());

}
```

For further usage of this package please refer to the [core package documentation on "Client Credentials Grant"](https://github.com/thephpleague/oauth2-client#client-credentials-grant).

Due to the constraints of [Yelp Fusion's OAuth2 implementation](https://www.yelp.com/developers/documentation/v3/authentication), this package currently only supports the Client Credentials Grant and as a result, if you engage with the package for other grant types a `Stevenmaguire\OAuth2\Client\Provider\Exception\ProviderConfigurationException` exception will be thrown.

Testing
-------

[](#testing)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/stevenmaguire/oauth2-yelp/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Steven Maguire](https://github.com/stevenmaguire)
- [All Contributors](https://github.com/stevenmaguire/oauth2-yelp/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/stevenmaguire/oauth2-yelp/blob/master/LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d9c05a30823ae19fc54aa4b4721a696c253f8dec10c7fd22d372cfdc0fcb36d?d=identicon)[stevenmaguire](/maintainers/stevenmaguire)

---

Top Contributors

[![stevenmaguire](https://avatars.githubusercontent.com/u/1851973?v=4)](https://github.com/stevenmaguire "stevenmaguire (2 commits)")

---

Tags

clientoauthoauth2authorizationauthorisationyelp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/stevenmaguire-oauth2-yelp/health.svg)

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

###  Alternatives

[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[omines/oauth2-gitlab

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

36721.5k13](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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