PHPackages                             fgendorf/oauth2-zendesk - 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. fgendorf/oauth2-zendesk

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

fgendorf/oauth2-zendesk
=======================

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

02PHP

Since Nov 14Pushed 3y agoCompare

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

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

Zendesk Provider for OAuth 2.0 Client
=====================================

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

[![Latest Version](https://camo.githubusercontent.com/55783864bc3ed6ce6ef7d00d5ad9f547079d37f9982db4fb3f4a391559b8e0db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73746576656e6d6167756972652f6f61757468322d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/stevenmaguire/oauth2-zendesk/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/119a6ab95e31bd41c8470d2665fc5c087d6f9f9cdcb54ca38b79452c1373de37/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73746576656e6d6167756972652f6f61757468322d7a656e6465736b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/stevenmaguire/oauth2-zendesk)[![Coverage Status](https://camo.githubusercontent.com/4b54ebbd7a73263a5558a4147c8112433253040159a3952d57a3e5966e68fb05/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73746576656e6d6167756972652f6f61757468322d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-zendesk/code-structure)[![Quality Score](https://camo.githubusercontent.com/15a3947a0d5eae95cf4dbca68e13f8376468eea46046d6d04631b490ec96024d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73746576656e6d6167756972652f6f61757468322d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-zendesk)[![Total Downloads](https://camo.githubusercontent.com/e54f79c4dd5e5e9953b82b92479aa018bbf985fba535eafdae0265203c0539d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746576656e6d6167756972652f6f61757468322d7a656e6465736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stevenmaguire/oauth2-zendesk)

This package provides Zendesk 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-zendesk

```

Usage
-----

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

```
$provider = new Stevenmaguire\OAuth2\Client\Provider\Zendesk([
    'clientId'          => '{zendesk-client-id}',
    'clientSecret'      => '{zendesk-client-secret}',
    'redirectUri'       => 'https://example.com/callback-url',
    'subdomain'         => 'your-zendesk-subdomain',
]);
```

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

### Update and read subdomain after configuration

[](#update-and-read-subdomain-after-configuration)

```
$currentSubdomain = $provider->getSubdomain();
$newSubdomain = $currentSubdomain . '-v2';
$provider->setSubdomain($newSubdomain);
```

The provider will not complete configuration if a subdomain is not provided and updating the subdomain will silently fail if the value provided does not return truthy from `empty()`.

Testing
-------

[](#testing)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![stevenmaguire](https://avatars.githubusercontent.com/u/1851973?v=4)](https://github.com/stevenmaguire "stevenmaguire (8 commits)")[![jall](https://avatars.githubusercontent.com/u/10530150?v=4)](https://github.com/jall "jall (3 commits)")[![chadhutchins](https://avatars.githubusercontent.com/u/47898?v=4)](https://github.com/chadhutchins "chadhutchins (1 commits)")

### Embed Badge

![Health badge](/badges/fgendorf-oauth2-zendesk/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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