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: 4 months 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";

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