PHP code example of shahariaazam / wp-rank-checker
1. Go to this page and download the library: Download shahariaazam/wp-rank-checker 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/ */
shahariaazam / wp-rank-checker example snippets
use Http\Adapter\Guzzle6\Client;
use ShahariaAzam\WPRankChecker\RankChecker;
use ShahariaAzam\WPRankChecker\RankCheckerException;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
l")
->checkRanks();
// Get rank of your plugins for keyword "mail"
print_r($result->getRankBySlug('wp-mail-gateway')); // will return integer
print_r($result->getResults()); // will return a list of all plugins with search result position
} catch (RankCheckerException $e) {
echo $e->getMessage();
}