Yii2 – Google Places API Library

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



The preferred way to install this extension is through composer.

Either run

composer require 2amigos/google-places-library"

or add

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

to the require section of your composer.json file.



Once the extension is installed, simply use this code in view file :


Add the class to your controller file.


In Controller, Now just create your search function to load into the view!


Yii2 - Google Places API Library

Prakash S

Prakash S

I would like to introduce myself as a Software professional opting for the career in software industry. I'm Prakash S, a MCA graduate and trained as industry level practice for Software technology. Basically I am a PHP Developer but now days exploring more in HTML5, CSS, AngularJS and jQuery libraries.