PHPackages                             robinsaillard/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. [API Development](/categories/api)
4. /
5. robinsaillard/google-place-autocomplete-bundle

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

robinsaillard/google-place-autocomplete-bundle
==============================================

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

1.0.3(3y ago)02MITPHPPHP &gt;=7.0

Since Aug 10Pushed 3y agoCompare

[ Source](https://github.com/robinsaillard/GooglePlaceAutocompleteBundle)[ Packagist](https://packagist.org/packages/robinsaillard/google-place-autocomplete-bundle)[ Docs](https://github.com/robinsaillard/GooglePlaceAutocompleteBundle)[ RSS](/packages/robinsaillard-google-place-autocomplete-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (15)Versions (5)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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.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 ~0 days

Total

4

Last Release

1424d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44037580?v=4)[Robin Saillard](/maintainers/robinsaillard)[@robinsaillard](https://github.com/robinsaillard)

---

Top Contributors

[![Cethy](https://avatars.githubusercontent.com/u/735030?v=4)](https://github.com/Cethy "Cethy (32 commits)")[![robinsaillard](https://avatars.githubusercontent.com/u/44037580?v=4)](https://github.com/robinsaillard "robinsaillard (11 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/robinsaillard-google-place-autocomplete-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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