PHPackages                             joomla/google - 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. [Framework](/categories/framework)
4. /
5. joomla/google

AbandonedArchivedJoomla-package[Framework](/categories/framework)

joomla/google
=============

Joomla Google Package

1.2.0(7y ago)527214GPL-2.0-or-laterPHPPHP ^5.3.10|~7.0CI failing

Since Jun 4Pushed 4y ago17 watchersCompare

[ Source](https://github.com/joomla-framework/google-api)[ Packagist](https://packagist.org/packages/joomla/google)[ Docs](https://github.com/joomla-framework/google-api)[ RSS](/packages/joomla-google/feed)WikiDiscussions 2.0-dev Synced 1mo ago

READMEChangelogDependencies (8)Versions (13)Used By (0)

The Google Package [![Build Status](https://camo.githubusercontent.com/4bcdea840acd94a28432631807226896240efb548507ecf1076963f55736e0c7/68747470733a2f2f7472617669732d63692e6f72672f6a6f6f6d6c612d6672616d65776f726b2f676f6f676c652d6170692e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/joomla-framework/google-api)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#the-google-package-)

### Deprecated

[](#deprecated)

The `joomla/google` package is deprecated with no further updates planned.

### Using the Google Package

[](#using-the-google-package)

The Google package is designed to be a straightforward interface for working with various Google APIs. You can find a list of APIs and documentation for each API at [https://developers.google.com/products/.](https://developers.google.com/products/)

#### Instantiating Google

[](#instantiating-google)

Instantiating Google is easy:

```
use Joomla\Google\Google;

$google = new Google;
```

This creates a generic Google object that can be used to instantiate objects for specific Google APIs.

Sometimes it is necessary to specify additional options. This can be done by injecting in a Registry object with your preferred options:

```
use Joomla\Google\Google;
use Joomla\Registry\Registry;

$options = new Registry;
$options->set('clientid', 'google_client_id.apps.googleusercontent.com');
$options->set('clientsecret', 'google_client_secret');

$google = new Google($options);
```

#### Accessing the JGoogle APIs

[](#accessing-the-jgoogle-apis)

The Google Package divides APIs into two types: data APIs and embed APIs. Data APIs use `Joomla\Http` to send and receive data from Google. Embed APIs output HTML, JavaScript, and XML in order to embed information from Google in a webpage.

The Google package is still incomplete, but there are five object APIs that have currently been implemented:

Data: Google Calendar, Google AdSense, Google Picasa

Embed: Google Maps, Google Analytics

Once a Google object has been created, it is simple to use it to create objects for each individual API:

```
$calendar = $google->data('calendar');
```

or

```
$analytics = $google->data('analytics');
```

#### Using an API

[](#using-an-api)

See below for an example demonstrating the use of the Calendar API:

```
use Joomla\Google\Google;
use Joomla\Registry\Registry;

$options = new Registry;

// Client ID and Client Secret can be obtained  through the Google API Console (https://code.google.com/apis/console/).
$options->set('clientid', 'google_client_id.apps.googleusercontent.com');
$options->set('clientsecret', 'google_client_secret');
$options->set('redirecturi', JURI::current());

$google = new Google($options);

// Get a calendar API object
$calendar = $google->data('calendar');

// If the client hasn't been authenticated via OAuth yet, redirect to the appropriate URL and terminate the program
if (!$calendar->isAuth())
{
	JResponse::sendHeaders();
	die();
}

// Create a new Google Calendar called "Hello World."
$calendar->createCalendar('Hello World');
```

#### More Information

[](#more-information)

The following resources contain more information:[Joomla! API Reference](http://api.joomla.org), [Google Developers Homepage](https://developers.google.com/)

Installation via Composer
-------------------------

[](#installation-via-composer)

Add `"joomla/google": "2.0.*@dev"` to the require block in your composer.json and then run `composer install`.

```
{
	"require": {
		"joomla/google": "2.0.*@dev"
	}
}
```

Alternatively, you can simply run the following from the command line:

```
composer require joomla/google "2.0.*@dev"
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 70.8% 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 ~181 days

Recently: every ~391 days

Total

11

Last Release

2916d ago

PHP version history (2 changes)1.0-alphaPHP &gt;=5.3.10

1.1.4PHP ^5.3.10|~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/305a2164440014dcef9ac681c139fe5e8a1ce1d7a8c3b3cfb828497729a4c70e?d=identicon)[wilsonge](/maintainers/wilsonge)

---

Top Contributors

[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (68 commits)")[![dongilbert](https://avatars.githubusercontent.com/u/718028?v=4)](https://github.com/dongilbert "dongilbert (12 commits)")[![wilsonge](https://avatars.githubusercontent.com/u/1986000?v=4)](https://github.com/wilsonge "wilsonge (6 commits)")[![realityking](https://avatars.githubusercontent.com/u/628508?v=4)](https://github.com/realityking "realityking (2 commits)")[![eddieajau](https://avatars.githubusercontent.com/u/700871?v=4)](https://github.com/eddieajau "eddieajau (2 commits)")[![nibra](https://avatars.githubusercontent.com/u/827605?v=4)](https://github.com/nibra "nibra (1 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![PhilETaylor](https://avatars.githubusercontent.com/u/400092?v=4)](https://github.com/PhilETaylor "PhilETaylor (1 commits)")[![jbanety](https://avatars.githubusercontent.com/u/1055330?v=4)](https://github.com/jbanety "jbanety (1 commits)")[![AlexBachmann](https://avatars.githubusercontent.com/u/965972?v=4)](https://github.com/AlexBachmann "AlexBachmann (1 commits)")[![matrikular](https://avatars.githubusercontent.com/u/1304616?v=4)](https://github.com/matrikular "matrikular (1 commits)")

---

Tags

googlejoomlajoomla-frameworkphpframeworkgooglejoomla

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[joomla/github

Joomla Github Package

2863.3k2](/packages/joomla-github)[joomla/application

Joomla Application Package

23404.8k11](/packages/joomla-application)[joomla/http

Joomla HTTP Package

17674.4k12](/packages/joomla-http)[joomla/filter

Joomla Filter Package

151.4M8](/packages/joomla-filter)[joomla/oauth2

Joomla OAuth2 Package

10303.1k2](/packages/joomla-oauth2)[gdg-tangier/cloud-pubsub

Google Cloud pub-sub for laravel

5054.9k](/packages/gdg-tangier-cloud-pubsub)

PHPackages © 2026

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