PHPackages                             rivervanrain/google\_api - 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. [API Development](/categories/api)
4. /
5. rivervanrain/google\_api

ActiveElgg-plugin[API Development](/categories/api)

rivervanrain/google\_api
========================

Google API, Client and Services for Elgg

1.0.1(2y ago)02AGPL-3.0-or-laterPHPPHP ^8.2

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/RiverVanRain/google_api)[ Packagist](https://packagist.org/packages/rivervanrain/google_api)[ Docs](https://wzm.me)[ RSS](/packages/rivervanrain-google-api/feed)WikiDiscussions master Synced 5d ago

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

Google API
==========

[](#google-api)

[![Elgg 5.0](https://camo.githubusercontent.com/edf047daed0b0a805651012e257febd088ad6e11e372287cc24888af4ff61023/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/edf047daed0b0a805651012e257febd088ad6e11e372287cc24888af4ff61023/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d677265656e2e7376673f7374796c653d666c61742d737175617265)

Google API, Client and Services for Elgg

Developers
----------

[](#developers)

- Google JSON key dir:

```
elgg_get_data_path() . 'google/google_key.json';
```

[How to get Google JSON credentials](https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account)

- Google API Aliases

```
$classMap = [
    'Google\\Client' => 'Google_Client',
    'Google\\Service' => 'Google_Service',
    'Google\\AccessToken\\Revoke' => 'Google_AccessToken_Revoke',
    'Google\\AccessToken\\Verify' => 'Google_AccessToken_Verify',
    'Google\\Model' => 'Google_Model',
    'Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate',
    'Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler',
    'Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler',
    'Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google_AuthHandler_Guzzle5AuthHandler',
    'Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory',
    'Google\\Http\\Batch' => 'Google_Http_Batch',
    'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload',
    'Google\\Http\\REST' => 'Google_Http_REST',
    'Google\\Task\\Retryable' => 'Google_Task_Retryable',
    'Google\\Task\\Exception' => 'Google_Task_Exception',
    'Google\\Task\\Runner' => 'Google_Task_Runner',
    'Google\\Collection' => 'Google_Collection',
    'Google\\Service\\Exception' => 'Google_Service_Exception',
    'Google\\Service\\Resource' => 'Google_Service_Resource',
    'Google\\Exception' => 'Google_Exception',
];
```

### Usage

[](#usage)

Add Google API key and import Google JSON credentials.

Now you can use Google services.

Here is an example for Google Service Sheets:

```
	// Get the API client and construct the service object.
	$api_key = elgg_get_plugin_setting('api_key','google_api');

	// Initialize Google Client
	$client = new \Google_Client();
	$client->setDeveloperKey($api_key);
	$client->setApplicationName('my_app');
	$client->setScopes(\Google_Service_Sheets::SPREADSHEETS);
	$client->setAccessType('offline');

	// Authorize Google Client
	$data = elgg_get_data_path() . 'google/google_key.json';
	$client->setAuthConfig(json_decode($data, true));

	// Initialize Google service
	$service = new \Google_Service_Sheets($client);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~199 days

Total

4

Last Release

765d ago

Major Versions

0.4.0 → 1.0.02023-06-10

PHP version history (2 changes)0.4.0PHP ^8.1

1.0.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/48ce15d46f86b7e95cdf6885d04dfdb9e633e72e80b4f9924fb20c0e39153c28?d=identicon)[rivervanrain](/maintainers/rivervanrain)

---

Top Contributors

[![RiverVanRain](https://avatars.githubusercontent.com/u/2176145?v=4)](https://github.com/RiverVanRain "RiverVanRain (7 commits)")

---

Tags

elgggooglegoogledevelopment

### Embed Badge

![Health badge](/badges/rivervanrain-google-api/health.svg)

```
[![Health](https://phpackages.com/badges/rivervanrain-google-api/health.svg)](https://phpackages.com/packages/rivervanrain-google-api)
```

###  Alternatives

[revolution/laravel-google-sheets

Google Sheets API v4

4483.1M6](/packages/revolution-laravel-google-sheets)[pulkitjalan/google-apiclient

Google api php client wrapper with Cloud Platform and Laravel support

2582.9M5](/packages/pulkitjalan-google-apiclient)[thujohn/analytics

Google Analytics for Laravel 4

113108.7k1](/packages/thujohn-analytics)[mediafigaro/google-analytics-api-symfony

Google Analytics API v4 Symfony

46177.7k](/packages/mediafigaro-google-analytics-api-symfony)[schulzefelix/laravel-search-console

A Laravel package to retrieve data from Google Search Console

5037.8k1](/packages/schulzefelix-laravel-search-console)[scottybo/laravel-google-my-business

A package for Laravel which implements the Google My Business API

3360.3k](/packages/scottybo-laravel-google-my-business)

PHPackages © 2026

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