Skip to content

Yii2 typeahead google places autocomplete widget - DEPRECATED!!

Notifications You must be signed in to change notification settings

skiptirengu/yii2-places

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Build Status

This is an Yii2 wrapper for the Typeahead Address Picker JS plugin.

Installation

The preferred way to install this extension is through composer.

Either run

$ 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
echo $form->field($model, 'place')
          ->widget(PlacesAutocomplete::className());
?>

Without a model:

use nevermnd\places\PlacesAutocomplete;
<?php
echo PlacesAutocomplete::widget(['name' => 'place']);
?>

About

Yii2 typeahead google places autocomplete widget - DEPRECATED!!

Resources

Stars

Watchers

Forks

Packages

No packages published