2017 © Pedro Peláez
 

yii2-extension yii2-google

Easy google places extension for Yii2

image

alkurn/yii2-google

Easy google places extension for Yii2

  • Monday, June 4, 2018
  • by ganesh.alkurn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 163 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 36 % Grown

The README.md

yii2-google

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

Installation

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

    "requires": {
        "alkurn/yii2-google": "dev-master"
    }
composer require alkurn/yii2-google


##Usage

Using widget and model.
Using widget for custom field name and value.

use alkurn\google\Places; use alkurn\google\Map; echo Places::widget([ 'name' => 'place' 'value' => 'Jakarta' ]); use alkurn\google\Map; echo Map::widget([ 'latitude' => '34.000', 'longitude' => '84.000', 'title' => 'India' ]);

Using active form.
use yii\bootstrap\ActiveForm; use alkurn\google\Places; echo $form = ActiveForm::begin(); echo $form->field($model, 'location')->widget(Places::className());

The Versions

04/06 2018

dev-master

9999999-dev

Easy google places extension for Yii2

  Sources   Download

MIT

The Requires

 

extension yii2 google places google map