PHP code example of highsolutions / google-keywords
1. Go to this page and download the library: Download highsolutions/google-keywords 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/ */
use HighSolutions\GoogleKeywords\Models\GoogleKeyword;
$results = GoogleKeyword::url('http://highsolutions.pl')->grouped()->orderBySum('clicks')->take(10)->get();
use HighSolutions\GoogleKeywords\Models\GoogleKeyword;
$results = GoogleKeyword::url('http://highsolutions.pl')->orderByDate()->get();
use Carbon\Carbon;
use HighSolutions\GoogleKeywords\Models\GoogleKeyword;
$results = GoogleKeyword::url('http://highsolutions.pl')->byDate()->where('date', '>=', Carbon::now()->subMonth(1))->orderByDate()->get();