PHP code example of wearesho-team / yii2-google-autocomplete

1. Go to this page and download the library: Download wearesho-team/yii2-google-autocomplete library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wearesho-team / yii2-google-autocomplete example snippets




use Wearesho\GoogleAutocomplete;

$config = [
    'bootstrap' => [
        'googleAutocomplete' => [
            'class' => GoogleAutocomplete\Yii\Bootstrap::class
        ],
    ]
];



use Wearesho\GoogleAutocomplete;

$module = [
    'controllerMap' => [
        'autocomplete' => [
            'class' => GoogleAutocomplete\Yii\Controller::class,
        ],
    ]
];