PHPackages                             iliain/silverstripe-google-config - 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. [Admin Panels](/categories/admin)
4. /
5. iliain/silverstripe-google-config

ActiveSilverstripe-vendormodule[Admin Panels](/categories/admin)

iliain/silverstripe-google-config
=================================

Provides a management panel for Google features in Silverstripe

2.3.0(1y ago)070BSD-3-ClausePHPPHP ^7 || ^8

Since Jul 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Iliain/silverstripe-google-config)[ Packagist](https://packagist.org/packages/iliain/silverstripe-google-config)[ Docs](http://github.com/Iliain/silverstripe-google-config)[ RSS](/packages/iliain-silverstripe-google-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

Silverstripe Google Config
==========================

[](#silverstripe-google-config)

[![Latest Stable Version](https://camo.githubusercontent.com/a35d8662d455ae9d3a2e3a4af9f247dfe37ca0f9e91a6caf32536c88b04c2344/68747470733a2f2f706f7365722e707567782e6f72672f696c6961696e2f73696c7665727374726970652d676f6f676c652d636f6e6669672f76)](https://packagist.org/packages/iliain/silverstripe-google-config)[![Total Downloads](https://camo.githubusercontent.com/a1d73d5f90a8f5e1c0313b368966f2645d2aefad2432bffaec02bc401319c023/68747470733a2f2f706f7365722e707567782e6f72672f696c6961696e2f73696c7665727374726970652d676f6f676c652d636f6e6669672f646f776e6c6f616473)](https://packagist.org/packages/iliain/silverstripe-google-config)[![Latest Unstable Version](https://camo.githubusercontent.com/2ab01203374d4b89be6c77f72d7dd9f4821015670cb31a7764efb2622af2ea91/68747470733a2f2f706f7365722e707567782e6f72672f696c6961696e2f73696c7665727374726970652d676f6f676c652d636f6e6669672f762f756e737461626c65)](https://packagist.org/packages/iliain/silverstripe-google-config)[![License](https://camo.githubusercontent.com/c1546101bab53644fb06b592ad0ebb4220dec695cda3b081d1564439a2bbe2c9/68747470733a2f2f706f7365722e707567782e6f72672f696c6961696e2f73696c7665727374726970652d676f6f676c652d636f6e6669672f6c6963656e7365)](https://packagist.org/packages/iliain/silverstripe-google-config)[![PHP Version Require](https://camo.githubusercontent.com/0f9dade60c058af93d896589fe1028690119ec06be57499af513ba823ccc10ee/68747470733a2f2f706f7365722e707567782e6f72672f696c6961696e2f73696c7665727374726970652d676f6f676c652d636f6e6669672f726571756972652f706870)](https://packagist.org/packages/iliain/silverstripe-google-config)

Provides an admin interface separate from the Settings panel that lets users manage things like their GTM scripts, schema, reviews, etc.

Installation (with composer)
----------------------------

[](#installation-with-composer)

```
composer require iliain/silverstripe-google-config

```

Config
------

[](#config)

Enable/disable specific tabs in the CMS by adding the following yaml config:

```
---
Name: myproject-google-config
After: 'google-config'
---
Iliain\GoogleConfig\Models\GoogleConfig:
  enabled_panels:
    GTM: true
    Schema: true
    Places: false # setting to false will hide the tab
```

Depending on which APIs you're using, you may need to include environment variables for your keys, like so:

```
GOOGLE_MAPS_API_KEY="xxxxxxxxxxxxxxxxxxxxx"

```

Currently this module uses the following APIs:

- Google Places

### Permissions

[](#permissions)

You'll need to be either an Administrator, or have the `CMS_ACCESS_GoogleConfig` permission to access and edit the Google Config section in the CMS.

Usage
-----

[](#usage)

You can call data from the Google settings on the frontend via `$GoogleConfig`, like so:

```
{$GoogleConfig.SchemaCode.RAW}

{$GoogleConfig.HeadScripts.RAW}

            ...

```

### GTM Scripts

[](#gtm-scripts)

You can render the GTM scripts in your template with the following:

- `$HeadScripts.RAW`
- `$BodyStartScripts.RAW`
- `$BodyEndScripts.RAW`

Schema
------

[](#schema)

You can configure the global schema data in the CMS, and render it in your template with `$GoogleConfig.SchemaCode.RAW`.

When editing the schema, you have the option to add Objects and/or Properties. Properties are single name/value pairs, while Objects can contain multiple Properties (good for addresses, etc.).

A tab named Output will display the expected output of your configured schema.

Places
------

[](#places)

Setting up a Place in the CMS, with an example of the Review data

[![Example of setting up a Place](docs/images/place-fields.png)](docs/images/place-fields.png)

With a selected Place, you can render the badge and feed in your template with `$ReviewBadge` and `$ReviewsList` respectively.

TODO
----

[](#todo)

- Fix the issue of the CMS needing to be reloaded for the map to appear when going back and viewing another map
- Add more APIs
- Update CSS to properly render as-is on the frontend (like a widget)
- Page specific schema?

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~81 days

Recently: every ~8 days

Total

7

Last Release

532d ago

Major Versions

1.0.0 → 2.0.02024-10-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/95555999d61957aa18a23d42afe8bcf7aad3a5e6d9dcc8c7e41ba183f405e49e?d=identicon)[iliain](/maintainers/iliain)

---

Top Contributors

[![Iliain](https://avatars.githubusercontent.com/u/2579262?v=4)](https://github.com/Iliain "Iliain (28 commits)")

---

Tags

googlegoogle-mapsgoogle-maps-apigoogle-maps-javascript-apigoogle-places-apigoogle-schemaschemaschema-orgsilverstripegooglesilverstripecmsmodular

### Embed Badge

![Health badge](/badges/iliain-silverstripe-google-config/health.svg)

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

###  Alternatives

[silverstripe/admin

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[stevie-mayhew/hasoneedit

Allows editing the fields of a has\_one object directly in the CMS

21225.4k11](/packages/stevie-mayhew-hasoneedit)[unclecheese/dashboard

Adds a dashboard to the SilverStripe CMS

4742.3k1](/packages/unclecheese-dashboard)[praxisnetau/silverstripe-moderno-admin

A SilverStripe module to give the CMS a more modern, flat appearance.

224.4k](/packages/praxisnetau-silverstripe-moderno-admin)

PHPackages © 2026

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