PHPackages                             goldfinch/google-autocomplete - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. goldfinch/google-autocomplete

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

goldfinch/google-autocomplete
=============================

Google Map field, Google Place Autocomplete field for Silverstripe to retrieve Latitude, Longitude, Zoom, Address details such as Street name, Region, Country and more

v1.0.7(2y ago)021MITPHPPHP &gt;=8.0

Since Jan 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/goldfinch/google-fields)[ Packagist](https://packagist.org/packages/goldfinch/google-autocomplete)[ RSS](/packages/goldfinch-google-autocomplete/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (9)Used By (0)

🦅 Google Fields for Silverstripe
================================

[](#-google-fields-for-silverstripe)

[![Silverstripe Version](https://camo.githubusercontent.com/a798a57963ddebe0c33c27c757b7722fc95a0a6cc52f7c1839a90238934cafe4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53696c7665727374726970652d253545352e312d3030356165312e7376673f6c6162656c436f6c6f723d7768697465266c6f676f436f6c6f723d666666666666266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a79423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d636949485a705a58644362336739496a41674d4341784d4445754d446b78494455344c6a55314e5349675a6d6c7362443069497a41774e57466c4d53496765473173626e4d36646a30696148523063484d364c7939325a574e30595335706279397559573576496a3438634746306143426b50534a4e4e5441754d444531494455754f445534624330794d5334794f444d674d5451754f5745324c6a55674e693431494441674d434177494463754e445134494445774c6a59314e4777794d5334794f444d744d5451754f574d344c6a67784d7930324c6a4533494449774c6a6b324c5451754d444934494449334c6a457a494451754e7a6732637a51754d444934494449774c6a6b324c5451754e7a6731494449334c6a457a624330324c6a59354d5341304c6a59334e6d4d314c6a55304d6941354c6a51784f4341784f4334774e7a67674e5334304e5455674d6a4d754e7a637a4c5451754e6a553051544d794c6a513349444d794c6a5133494441674d434177494455774c6a41784e5341314c6a67324d6e70744d5334774e5467674e4459754f444933624449784c6a49344e4330784e433435595459754e5341324c6a55674d434178494441744e7934304e446b744d5441754e6a557a5444517a4c6a59794d7941304d6934774d6a686a4c5467754f44457a494459754d5463744d6a41754f545535494451754d4449354c5449334c6a45794f5330304c6a63344e484d744e4334774d6a6b744d6a41754f545535494451754e7a67304c5449334c6a45794f5777324c6a59354d5330304c6a59334e6b4d794d6934304d79307a4c6a6b334e6941354c6a67354e4330754d44457a494451754d546b34494445774c6a41354e6d457a4d6934304e79417a4d6934304e794177494441674d4341304e6934344e7a55674e4449754e546b7965694976506a777663335a6e50673d3d)](https://packagist.org/packages/goldfinch/google-fields)[![Package Version](https://camo.githubusercontent.com/c1d85b5a8c6e8c84dc247b9b3e2836d5d35cc048b9b1947ce40b3d15ae951293/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6c6466696e63682f676f6f676c652d6669656c64732e7376673f6c6162656c436f6c6f723d33333326636f6c6f723d463843363330266c6162656c3d56657273696f6e)](https://packagist.org/packages/goldfinch/google-fields)[![Total Downloads](https://camo.githubusercontent.com/4c7002891321fe93ed2490f162fb2fb29318c42698f0281f4df40beb4c6404bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6c6466696e63682f676f6f676c652d6669656c64732e7376673f6c6162656c436f6c6f723d33333326636f6c6f723d463843363330266c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/goldfinch/google-fields)[![License](https://camo.githubusercontent.com/52c995c55ed138885c6542f99438c1ad1c64df23405b2c3173be081880971b13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f676f6c6466696e63682f676f6f676c652d6669656c64732e7376673f6c6162656c436f6c6f723d33333326636f6c6f723d463843363330266c6162656c3d4c6963656e7365)](https://packagist.org/packages/goldfinch/google-fields)

Google Map and Google Place (Autocomplete) fields for Silverstripe

Install
-------

[](#install)

```
composer require goldfinch/google-fields
```

.env

```
APP_GOOGLE_MAPS_KEY=""

```

Usage
-----

[](#usage)

#### Map component

[](#map-component)

Library required [Maps JavaScript API](https://console.cloud.google.com/apis/library/maps-backend.googleapis.com)

[![Screenshot](screenshots/map.png)](screenshots/map.png)

```
use Goldfinch\GoogleFields\Forms\MapField;

private static $db = [
    'Map' => 'Map',
];

// ..

MapField::create('Map')

//

MapField::create('Map', 'Map')
    ->setSettings([
        'lng' => 168.7439017,
        'lat' => -45.0136784,
        'zoom' => 10,
    ])
    ->mapHideSearch()
    ->mapHideExtra()
    ->mapReadonly()
```

```

$Map
$Map.Link

$Map.Longitude
$Map.Latitude
$Map.Zoom
```

#### Place autocomplete component

[](#place-autocomplete-component)

Library required [Places API](https://console.cloud.google.com/apis/library/places-backend.googleapis.com)

[![Screenshot](screenshots/place.png)](screenshots/place.png)

```
use Goldfinch\GoogleFields\Forms\PlaceField;

private static $db = [
    'Place' => 'Place',
];

// ...

PlaceField::create('Place')

//

PlaceField::create('Place', 'Place')
    ->setSettings([
      'country' => 'ru',
    ])
    ->placeHidePreview()
```

```

$Place.Address
$Place.Data

$Place.Link

$Place.Subpremise
$Place.StreetNumber
$Place.StreetName
$Place.Suburb
$Place.Subarea
$Place.Region
$Place.District
$Place.Country
$Place.Postcode

$Place.PlaceName
$Place.Latitude
$Place.Longitude
```

License
-------

[](#license)

The MIT License (MIT)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Recently: every ~22 days

Total

8

Last Release

780d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2291826?v=4)[goldfinch](/maintainers/goldfinch)[@goldfinch](https://github.com/goldfinch)

---

Top Contributors

[![goldfinch](https://avatars.githubusercontent.com/u/2291826?v=4)](https://github.com/goldfinch "goldfinch (37 commits)")

---

Tags

silverstripegoogle mapgooglemapgooglemapfieldgoogleplacefieldgoogleplacegoogle-placegoogle-map-fieldgoogle-place-fieldmaps-javascript-apiplaces-api

### Embed Badge

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

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

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21424.1k12](/packages/silverstripe-sharedraftcontent)

PHPackages © 2026

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