PHP Classes

File: samples/position.php

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

Contents

Class file image Download
<?php

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

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


$engine = new Google();
$cache = new \BABA\Cache\Cache(new \BABA\Cache\Drivers\Disk());
$keyword = 'BABA Tumise s.r.o.';
$position = (new Position($engine,$cache))->getResult($keyword, 'lang_cs','',['num' => 100, 'from' => 0, 'domain' => 'baba.bj']);
echo
"Result: {$position} for {$keyword}\n";