2017 © Pedro Peláez
 

library yii2-googleplacesautocomplete

Google Places Auto Complete input widget for Yii2

image

petrabarus/yii2-googleplacesautocomplete

Google Places Auto Complete input widget for Yii2

  • Monday, October 26, 2015
  • by petrabarus
  • Repository
  • 2 Watchers
  • 6 Stars
  • 2,429 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 4 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

yii2-googleplacesautocomplete

Google Places Auto Complete widget for Yii2, (*1)

Installation

Add below to your composer.json file, (*2)

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

Usage

Using widget and model., (*3)

use PetraBarus\Yii2\GooglePlacesAutoComplete\GooglePlacesAutoComplete;

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

Using widget for custom field name and value., (*4)

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

Using active form., (*5)

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

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

The Versions

26/10 2015

dev-master

9999999-dev

Google Places Auto Complete input widget for Yii2

  Sources   Download

MIT

The Requires

 

by Petra Barus