wearesho-team / yii2-google-autocomplete
Yii2 google-api integration
2.2.0
2019-03-12 23:24 UTC
Requires
- php: >7.1
- wearesho-team/google-autocomplete: ^2.1
- wearesho-team/yii-http: ^1.12
- yiisoft/yii2: ^2.0.15
Requires (Dev)
- phpunit/phpunit: ^7.3
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2024-12-13 12:37:53 UTC
README
Installation
Use composer to install the package:
composer require wearesho-team/yii2-google-autocomplete
Usage
Bootstrap
Add to your common/config/main.php
:
<?php use Wearesho\GoogleAutocomplete; $config = [ 'bootstrap' => [ 'googleAutocomplete' => [ 'class' => GoogleAutocomplete\Yii\Bootstrap::class ], ] ];
Controller
Add to your api/config/main.php
:
<?php use Wearesho\GoogleAutocomplete; $module = [ 'controllerMap' => [ 'autocomplete' => [ 'class' => GoogleAutocomplete\Yii\Controller::class, ], ] ];