PHPackages                             jwadin/oauth2-zoom - 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. jwadin/oauth2-zoom

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

jwadin/oauth2-zoom
==================

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

1.0.2(6y ago)018.9k↓50%4[2 PRs](https://github.com/jwadin/oauth2-zoom/pulls)MITPHPPHP ^5.6|^7.0

Since Jun 22Pushed 5y agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Zoom Provider for OAuth 2.0 Client
==================================

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

[![Latest Version](https://camo.githubusercontent.com/cfa11b2336f94cf4be550dbf786c89b5da4a8e72d6e74039ed7958fbfd14fb5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f76616e74657a7a656e2f6f61757468322d70696e7465726573742e7376673f7374796c653d666c61742d737175617265)](https://github.com/vantezzen/oauth2-pinterest/releases)[![Total Downloads](https://camo.githubusercontent.com/58d0ef062e3139270ee313a5fc4112aaf1e6c0b673c682eddafc0f49efa38431/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76616e74657a7a656e2f6f61757468322d70696e7465726573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vantezzen/oauth2-pinterest)

This package provides Zoom 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 ntpages/oauth2-zoom

```

Usage
-----

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

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

if (!isset($_GET['code'])) {

    // If we don't have an authorization code then get one
    $authUrl = $provider->getAuthorizationUrl();
    $_SESSION['oauth2state'] = $provider->getState();
    header('Location: '.$authUrl);
    exit;

// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {

    unset($_SESSION['oauth2state']);
    exit('Invalid state');

} else {

    // Try to get an access token (using the authorization code grant)
    $token = $provider->getAccessToken('authorization_code', [
        'code' => $_GET['code']
    ]);

    // Optional: Now you have a token you can look up a users profile data
    try {

        // We got an access token, let's now get the user's details
        $user = $provider->getResourceOwner($token);

        // Use these details to create a new profile
        printf('Hello %s!', $user->getName());

    } catch (Exception $e) {

        // Failed to get user details
        exit('Oh dear...');
    }

    // Use this to interact with an API on the users behalf
    echo $token->getToken();
}
```

### Managing Scopes

[](#managing-scopes)

When creating your Pinterest authorization URL, you can specify the state and scopes your application may authorize.

```
$options = [
    'state' => 'OPTIONAL_CUSTOM_CONFIGURED_STATE',
    'scope' => ['read', 'write'] // array or string
];

$authorizationUrl = $provider->getAuthorizationUrl($options);
```

If neither are defined, the provider will utilize internal defaults.

At the time of authoring this documentation, the [following scopes are available](https://zoom.us/).

- user:read

Testing
-------

[](#testing)

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

Credits
-------

[](#credits)

- [vantezzen](https://github.com/vantezzen)
- [Steven Maguire](https://github.com/stevenmaguire)
- [ajibarra](https://github.com/ajibarra)
- [The PHP League](https://github.com/thephpleague)
- [All Contributors](https://github.com/vantezzen/oauth2-pinterest/contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

Every ~322 days

Total

2

Last Release

2195d ago

### Community

Maintainers

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

---

Top Contributors

[![iflorespaz](https://avatars.githubusercontent.com/u/26859617?v=4)](https://github.com/iflorespaz "iflorespaz (6 commits)")[![VictorGarcia](https://avatars.githubusercontent.com/u/204441?v=4)](https://github.com/VictorGarcia "VictorGarcia (4 commits)")[![jwadin](https://avatars.githubusercontent.com/u/1422474?v=4)](https://github.com/jwadin "jwadin (1 commits)")

---

Tags

clientoauthoauth2authorizationauthorisationzoom

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jwadin-oauth2-zoom/health.svg)

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

###  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)[league/oauth2-instagram

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

761.0M31](/packages/league-oauth2-instagram)[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)
