PHPackages                             rz/google-api-client-bundle - 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. rz/google-api-client-bundle

AbandonedArchivedSymfony-bundle[API Development](/categories/api)

rz/google-api-client-bundle
===========================

A Symfony2 Wrapper for the Google APIs Client Library for PHP

1.0.x-dev(9y ago)15822MITCSSPHP &gt;=5.3.2

Since Jun 15Pushed 9y agoCompare

[ Source](https://github.com/rzproject/GoogleAPIClientBundle)[ Packagist](https://packagist.org/packages/rz/google-api-client-bundle)[ Docs](http://github.com/rzproject/RzGoogleAPIClientBundle)[ RSS](/packages/rz-google-api-client-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

GoogleAPIClientBundle
=====================

[](#googleapiclientbundle)

The GoogleBundle adds the ability to add various Google services to your application. Currently Implemented: Google Analytics, Google Tag Manager and Client API

**STABLE VERSION**

Installation
============

[](#installation)

Add the following to your composer.json file:

```
    {
        "require": {
            "rz/google-api-client-bundle" : "1.0.*"
        }
    }

```

Install the libraries by running:

```
    composer install
```

If everything worked, the Google Bundle can now be found at vendor/rz/google-api-client-bundle.

Finally, be sure to enable the bundle in AppKernel.php by including the following:

```
    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            //...
            new Rz\GoogleAPIClientBundle\RzGoogleAPIClientBundle(),
        );
    }

```

Configuration
=============

[](#configuration)

Google Analytics

```
    rz_google_api_client:
      settings:
        google_services:
          ################
          # Sample Analytics Code replace with you own tracking code
          ################
          analytics:
            enabled: true
            tracking_id: UA-XXXXXXXX-X
            tracker_name: __rz_gaTracker
          ################
          # Sample GTM Code replace with you own tracking code
          ################
          tag_manager:
            enabled: true
            gtm_id: GTM-XXXXXX

        ################
        # Google Client API
        ################
        client_api:
          ################
          # Google Client API Public API
          ################
          public:
            app_name: rz-cms-XXXXXX
            api_key: ~
            site_name: rz-cms
          ################
          # Google Client API Service Account
          ################
          service:
            app_name: ~
            client_id: ~
            client_email: ~
            certificate_fingerprint: ~
            certificate_key: %kernel.root_dir%/config/rmzamora/rz/google_api_key/YOUR_KEY_HERE.json
            certificate_p12: %kernel.root_dir%/config/rmzamora/rz/google_api_key/YOUR_KEY_HERE.p12
            certificate_password: XXXXXXXX
          ################
          # Google Client API Web Application
          ################
          web_app:
            client_id: ~
            client_secret: ~
```

#### View Twig Helper

[](#view-twig-helper)

google analytics tracking code:

```
{{ rz_google_analytics_tracking_code() }}

```

google analytics event ie:pageview:

```
{{ rz_google_analytics_page_view() }}

```

google analytics custom event ie:pageview with paramters:

```
{{ rz_google_analytics_page_view_custom({'page': /MY_PAGE_URL}) }}

```

google analytics dashboard requires RzBlockBundle and RzAdminBundle:

```
{{ rz_google_service_analytics_embed_api() }} //embed code required to use Analytics EmbedAPI

# SHOW YOUR SITE ANALYTICS on YOUR SonataAdmin Dashbaord - sonata_admin.yml
dashboard:
    blocks:
        - { position: top, type: rz_google_api_client.block.admin_ga_site_traffic, settings: { mode: admin, title: Google Analytics } }

# Register Block under sonata_block.yml
rz_google_api_client.block.admin_ga_site_traffic:
    contexts: [admin]

```

---

### screenshot

[](#screenshot)

---

[![Alt text](https://raw.githubusercontent.com/rzproject/cms-sandbox/1.3/app/Resources/docs/screenshots/rz-cms-sandbox-dashboard-001.jpg)](https://raw.githubusercontent.com/rzproject/cms-sandbox/1.3/app/Resources/docs/screenshots/rz-cms-sandbox-dashboard-001.jpg)

Back to: [rzproject](http://rzproject.github.io)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2629aaa120706e711ccaed6a2dd7879cbed9ee74799eccb0db9bf28255ba7e90?d=identicon)[mellzamora](/maintainers/mellzamora)

---

Top Contributors

[![rmzamora](https://avatars.githubusercontent.com/u/350139?v=4)](https://github.com/rmzamora "rmzamora (14 commits)")

---

Tags

google api

### Embed Badge

![Health badge](/badges/rz-google-api-client-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[happyr/google-api-bundle

A Symfony2 Wrapper for the Google APIs Client Library for PHP

48196.1k](/packages/happyr-google-api-bundle)[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[x-fran/g-trends

Google Trends API for PHP

11955.6k](/packages/x-fran-g-trends)[tomshaw/google-api

A Laravel Google API Client.

591.5k](/packages/tomshaw-google-api)[chameleon-system/chameleon-base

The Chameleon System core.

1026.5k3](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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