PHP code example of devdojo / google-image-search

1. Go to this page and download the library: Download devdojo/google-image-search 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/ */

    

devdojo / google-image-search example snippets


use DevDojo\GoogleImageSearch\ImageSearch;

ImageSearch::config()->apiKey('API Goes Here');
ImageSearch::config()->cx('CX Goes Here');

ImageSearch::search('civic');

ImageSearch::search('civic', ['imgSize' => 'large']);