PHPackages                             petrabarus/yii2-googleplacesautocomplete - 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. petrabarus/yii2-googleplacesautocomplete

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

petrabarus/yii2-googleplacesautocomplete
========================================

Google Places Auto Complete input widget for Yii2

106.4k11[1 PRs](https://github.com/petrabarus/yii2-googleplacesautocomplete/pulls)PHP

Since Oct 26Pushed 9y ago2 watchersCompare

[ Source](https://github.com/petrabarus/yii2-googleplacesautocomplete)[ Packagist](https://packagist.org/packages/petrabarus/yii2-googleplacesautocomplete)[ RSS](/packages/petrabarus-yii2-googleplacesautocomplete/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-googleplacesautocomplete
=============================

[](#yii2-googleplacesautocomplete)

Google Places Auto Complete widget for Yii2

\##Installation

Add below to your `composer.json` file

```
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/petrabarus/yii2-googleplacesautocomplete"
        }
    ],
    "requires": {
        "petrabarus/yii2-googleplacesautocomplete": "*"
    }

```

\##Usage

Using widget and model.

```
use PetraBarus\Yii2\GooglePlacesAutoComplete\GooglePlacesAutoComplete;

echo GooglePlacesAutoComplete::widget([
    'model' => $model,
    'attribute' => 'location'
]);

```

Using widget for custom field name and value.

```
use PetraBarus\Yii2\GooglePlacesAutoComplete\GooglePlacesAutoComplete;
echo GooglePlacesAutoComplete::widget([
    'name' => 'place'
    'value' => 'Jakarta'
]);

```

Using active form.

```
use yii\bootstrap\ActiveForm;
use PetraBarus\Yii2\GooglePlacesAutoComplete\GooglePlacesAutoComplete;

echo $form = ActiveForm::begin();
echo $form->field($model, 'location')->widget(GooglePlacesAutoComplete::className());

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

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

---

Top Contributors

[![petrabarus](https://avatars.githubusercontent.com/u/523289?v=4)](https://github.com/petrabarus "petrabarus (4 commits)")[![fabiomlferreira](https://avatars.githubusercontent.com/u/1872297?v=4)](https://github.com/fabiomlferreira "fabiomlferreira (1 commits)")

### Embed Badge

![Health badge](/badges/petrabarus-yii2-googleplacesautocomplete/health.svg)

```
[![Health](https://phpackages.com/badges/petrabarus-yii2-googleplacesautocomplete/health.svg)](https://phpackages.com/packages/petrabarus-yii2-googleplacesautocomplete)
```

###  Alternatives

[riverskies/laravel-vue-component

Helper package to aid usage of Vue Components within Laravel projects

201.2k](/packages/riverskies-laravel-vue-component)

PHPackages © 2026

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