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

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cethyworks/google-place-autocomplete-bundle
===========================================

Provides a Google Place Autocomplete Type, the most minimalist, unobtrusive way possible.

v5.1(6y ago)1111.4k9[1 PRs](https://github.com/Cethy/GooglePlaceAutocompleteBundle/pulls)MITPHPPHP ^7.1.3

Since Jul 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Cethy/GooglePlaceAutocompleteBundle)[ Packagist](https://packagist.org/packages/cethyworks/google-place-autocomplete-bundle)[ RSS](/packages/cethyworks-google-place-autocomplete-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (13)Used By (0)

Cethyworks\\GooglePlaceAutocompleteBundle
=========================================

[](#cethyworksgoogleplaceautocompletebundle)

Provides a Google Place Autocomplete Type, the most minimalist, unobtrusive way possible.

[![CircleCI](https://camo.githubusercontent.com/90ba941faaa752c344e82000af606e438777be95ed0a453d1821243d124234b9/68747470733a2f2f636972636c6563692e636f6d2f67682f43657468792f476f6f676c65506c6163654175746f636f6d706c65746542756e646c652f747265652f6d61737465722e7376673f7374796c653d736869656c64)](https://circleci.com/gh/Cethy/GooglePlaceAutocompleteBundle/tree/master)

Versions
--------

[](#versions)

### For symfony &gt;= 3.4

[](#for-symfony--34)

Use latest or &gt;= v3.3

### For symfony &lt; 3.4

[](#for-symfony--34-1)

Use 2.2 or lower

Install
-------

[](#install)

1\. Composer require

```
$ composer require cethyworks/google-place-autocomplete-bundle

```

2\. Register bundles

```
// AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Cethyworks\ContentInjectorBundle\CethyworksContentInjectorBundle(),
            new Cethyworks\GooglePlaceAutocompleteBundle\CethyworksGooglePlaceAutocompleteBundle(),
        ];
        // ...

```

How to use
----------

[](#how-to-use)

1\. Add (optionally) a `config/packages/cethyworks_google_place_autocomplete.yaml` file with :

```
cethyworks_google_place_autocomplete:
    google:
        api_key: 'your_api_key'

```

2\. Use `Cethyworks\GooglePlaceAutocompleteBundle\Form\SimpleGooglePlaceAutocompleteType` into your forms ;

3\. Done !

Get more data from the Google Place API
---------------------------------------

[](#get-more-data-from-the-google-place-api)

If you need more info from the place API results, you can use the `ComplexGooglePlaceAutocompleteType` in your forms instead.

Instead of returning a simple `string`, this Type return a `Cethyworks\GooglePlaceAutocompleteBundle\Model\Place` object.

In order to persist it, the bundle provides doctrine mapping, use it like this in your entities :

```
use Cethyworks\GooglePlaceAutocompleteBundle\Model\Place;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Table(name="dummy_entity")
 * @ORM\Entity()
 */
class DummyEntity
{
    /**
     * @var Place
     *
     * @ORM\Embedded(class="Cethyworks\GooglePlaceAutocompleteBundle\Model\Place")
     *
     * @Assert\NotBlank()
     */
    private $locationAddress;

    // ...
}

```

How it works
------------

[](#how-it-works)

When either a `SimpleGooglePlaceAutocompleteType` or a `ComplexGooglePlaceAutocompleteType` are used, it registers 2 [`InjectorCommands`](https://github.com/Cethy/ContentInjectorBundle#cethyworkscontentinjectorbundle) (one for the library call, one for the input controls) which will inject the necessary javascript code (with the input id &amp; the google api\_key) into the `Response` automatically.

Additional information
----------------------

[](#additional-information)

[Cethyworks\\ContentInjectorBundle](https://github.com/Cethy/ContentInjectorBundle)

[Google Place Autocomplete Documentation](https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete)

Roadmap
-------

[](#roadmap)

- Update README.md with a example transforming Place into another entity
- Update Place entity to retrieve more data

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~79 days

Recently: every ~73 days

Total

12

Last Release

2365d ago

Major Versions

v1.2 → v2.02017-08-07

v2.2 → v3.02019-02-04

v3.3 → v5.02019-11-26

PHP version history (2 changes)v1.0PHP &gt;=5.6.17

v3.0PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0992307e9a9d414b451beb664b8313ed22f77d6b5b949a9f199b2114d6cae4d?d=identicon)[Cethy](/maintainers/Cethy)

---

Top Contributors

[![Cethy](https://avatars.githubusercontent.com/u/735030?v=4)](https://github.com/Cethy "Cethy (32 commits)")[![aniskasmi](https://avatars.githubusercontent.com/u/10786016?v=4)](https://github.com/aniskasmi "aniskasmi (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cethyworks-google-place-autocomplete-bundle/health.svg)

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

###  Alternatives

[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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