2017 © Pedro Peláez
 

yii2-extension yii2-google-places-library

Google Places API Library for Yii2.

image

2amigos/yii2-google-places-library

Google Places API Library for Yii2.

  • Thursday, August 10, 2017
  • by tonydspaniard
  • Repository
  • 10 Watchers
  • 20 Stars
  • 7,824 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 18 Forks
  • 1 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Google Places API Library for Yii2

Packagist Version Latest Stable Version Total Downloads Latest Unstable Version
Scrutinizer Code Quality, (*1)

Extension library to interact with Google Places API by wrapping the methods of our 2amigos/google-places-library into Yii2 components., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require "2amigos/yii2-google-places-library" "*"

or add, (*5)

"2amigos/yii2-google-places-library" : "*"

to the require section of your application's composer.json file., (*6)

Usage

The preferred way is to setup the components into our Application's configuration array:, (*7)

'components' => [
    'places' => [
         'class' => '\dosamigos\google\places\Places',
         'key' => '{your-google-api-key-with-places-activated}',
         'format' => 'json', // or 'xml'
         'forceJsonArrayResponse' => true // for decoding responses to arrays instead of objects
     ],
     'placesSearch' => [
         'class' => '\dosamigos\google\places\Search',
         'key' => '{your-google-api-key-with-places-activated}',
         'format' => 'json' // or 'xml'
     ]

]

That's it, you are ready to use them as Yii2 components., (*8)

Using Search Component, (*9)

// If you setup the format in 'json', the returned value will be an array. If 'xml', it will return a SimpleXmlElement.
var_dump(Yii::$app->search->text('restaurants in Inca Mallorca'));

Using Places component, (*10)

var_dump(Yii::$app->place->details('{REFERENCEIDOFPLACE}'));

Further Information

For further information regarding the multiple parameters of Google Places please visit its API reference and our standalone library 2amigos/google-places-library, (*11)


Custom Software Development | Web & Mobile Development Software
www.2amigos.us

The Versions

10/08 2017

dev-master

9999999-dev

Google Places API Library for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension library yii google places

10/08 2017

1.0.2

1.0.2.0

Google Places API Library for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension library yii google places

01/08 2017

1.0.1

1.0.1.0

Google Places API Library for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension library yii google places

01/08 2017

1.0.0

1.0.0.0

Google Places API Library for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension library yii google places

15/05 2015

dev-develop

dev-develop https://github.com/2amigos/yii2-google-places-library

The Google Places API library for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii google places yii 2

28/05 2014

0.1.0

0.1.0.0

Google Places API Library for Yii2.

  Sources   Download

BSD-3-Clause

The Requires

 

extension library yii google places