PHPackages                             rapidwebltd/php-google-oauth-2-handler - 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. rapidwebltd/php-google-oauth-2-handler

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

rapidwebltd/php-google-oauth-2-handler
======================================

This package provides a handler to ease authentication with Google's OAuth 2 APIs.

v2.0.0(1mo ago)5260.5k↑128.6%133LGPL-3.0-onlyPHPPHP ^8.1CI passing

Since Feb 19Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/rapidwebltd/php-google-oauth-2-handler)[ Packagist](https://packagist.org/packages/rapidwebltd/php-google-oauth-2-handler)[ RSS](/packages/rapidwebltd-php-google-oauth-2-handler/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (3)

PHP Google OAuth 2 Handler
==========================

[](#php-google-oauth-2-handler)

This package provides a handler to ease authentication with Google's OAuth 2 APIs.

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

[](#installation)

PHP Google OAuth 2 Handler can be easily installed using Composer. Just run the following command from the root of your project.

```
composer require rapidwebltd/php-google-oauth-2-handler

```

If you have never used the Composer dependency manager before, head to the [Composer website](https://getcomposer.org/) for more information on how to get started.

Dependents
----------

[](#dependents)

This handler is designed to be used by other packages to implement API clients that interact with Google's OAuth 2 APIs. Visit the following URL to see all the packages that make use of this handler.

Setup
-----

[](#setup)

Create OAuth client credentials in Google Cloud and register a redirect URI. Then run:

```
php vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php
```

The retired out-of-band OAuth flow is not used. After authorizing, copy the `code` query parameter from the registered redirect URL back into the setup command.

Usage
-----

[](#usage)

```
use RapidWeb\GoogleOAuth2Handler\GoogleOAuth2Handler;

$handler = new GoogleOAuth2Handler(
    $clientId,
    $clientSecret,
    $scopes,
    $refreshToken,
    $redirectUri
);

$response = $handler->performRequest('GET', 'https://people.googleapis.com/v1/people/me');
```

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity43

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity77

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

Every ~512 days

Recently: every ~767 days

Total

7

Last Release

31d ago

Major Versions

v1.2.2 → v2.0.02026-07-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (3 commits)")

---

Tags

googlegoogle-apigoogle-oauth2oauth2phpphp-library

### Embed Badge

![Health badge](/badges/rapidwebltd-php-google-oauth-2-handler/health.svg)

```
[![Health](https://phpackages.com/badges/rapidwebltd-php-google-oauth-2-handler/health.svg)](https://phpackages.com/packages/rapidwebltd-php-google-oauth-2-handler)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121269.8k1](/packages/ellaisys-aws-cognito)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

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