PHP Classes

File: samples/volume.php

Recommend this page to a friend!
  Classes of Juraj Puchký  >  PHP Search Analytics Utilities  >  samples/volume.php  >  Download  
File: samples/volume.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Search Analytics Utilities
Find keywords to optimize pages for search engines
Author: By
Last change:
Date: 4 months ago
Size: 534 bytes
 

Contents

Class file image Download
<?php

include_once __DIR__.'/../vendor/autoload.php';

use
BABA\Search\Analyzers\Volume;
use
BABA\Search\Engines\Google;


$engine = new Google();
$cache = new \BABA\Cache\Cache(new \BABA\Cache\Drivers\Disk());
if(
$engine->authentication()) {
   
$keyword = 'test';
    try {
       
$results = (new Volume($engine,$cache))->getResult([$keyword], 1021, [2203], ['number-results' => 100, 'max-volume' => 1000, 'min-volume' => 100]);
       
var_dump($results);
    } catch(
Exception $e) {
        echo
"{$e->getMessage()}\n";
    }
}

For more information send a message to info at phpclasses dot org.