wearesho-team/yii2-google-autocomplete

Yii2 google-api integration

2.2.0 2019-03-12 23:24 UTC

This package is auto-updated.

Last update: 2024-12-13 12:37:53 UTC


README

Build Status codecov

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,
        ],
    ]
];

Contributors

License

MIT