PHP Classes

File: samples/results.php

Recommend this page to a friend!
  Classes of Juraj Puchký   PHP Search Analytics Utilities   samples/results.php   Download  
File: samples/results.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: 3 years ago
Size: 350 bytes
 

Contents

Class file image Download
<?php

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

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


$engine = new Google();
$cache = new \BABA\Cache\Cache(new \BABA\Cache\Drivers\Disk());
$keyword = 'test';
$results = (new Results($engine,$cache))->getResult($keyword, 'lang_cs');
echo
"Results: {$results} for {$keyword}\n";