https://github.com/sugiruu/yii2-places
Yii2 typeahead google places autocomplete widget - DEPRECATED!!
https://github.com/sugiruu/yii2-places
Last synced: 11 days ago
JSON representation
Yii2 typeahead google places autocomplete widget - DEPRECATED!!
- Host: GitHub
- URL: https://github.com/sugiruu/yii2-places
- Owner: sugiruu
- Created: 2015-12-28T04:17:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T15:21:54.000Z (almost 6 years ago)
- Last Synced: 2025-03-29T01:34:31.883Z (29 days ago)
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yii2-places-autocomplete
### This extension is now deprecated, v1.0.5 is the last release!
Mainly because Typeahead Address Picker hasn't been updated in some time and Google Places now requires API keys.[](https://travis-ci.org/skiptirengu/yii2-places)
This is an Yii2 wrapper for the [Typeahead Address Picker](https://github.com/sgruhier/typeahead-addresspicker) JS plugin.
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).Either run
```bash
$ composer require nevermnd/yii2-places:^1.0
```or add
```
"nevermnd/yii2-places": "^1.0"
```to the `require` section of your `composer.json` file.
## Usage
With a model:
```
use nevermnd\places\PlacesAutocomplete;
``````php
field($model, 'place')
->widget(PlacesAutocomplete::className());
?>
```
Without a model:
```
use nevermnd\places\PlacesAutocomplete;
```
```php
'place']);
?>
```