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. robinsaillard/google-place-autocomplete-bundle

ActiveSymfony-bundle

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 1mo ago

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

1368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fb2c580ac6235d89c766047a0369a99d792a81c0ce08a58bcd93a18cd728887?d=identicon)[robinsaillard](/maintainers/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

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[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)

PHPackages © 2026

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