No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests initial commit Jan 14, 2018

Laravel Keyword Rank

A Laravel package for getting keyword position from Google. This package works with proxy service from seo-proxies dot com at the moment but the plan is to make it work with any proxy services.


Add the following line to the require section of your Laravel webapp's composer.json file:

    "require": {
        "seongbae/KeywordRank": "1.*"

Run composer update to install the package.

Or simpy run composer require seongbae/keywordrank

This package uses Laravel 5.5 Package Auto-Discovery.

For previous versions of Laravel, you need to update config/app.php by adding an entry for the service provider:

'providers' => [
    // ...

Next, publish all package resources:

    php artisan vendor:publish --provider="seongbae\KeywordRank\KeywordRankServiceProvider"

This will add to your project:

- migration - database tables for storing keywords and positions/rankings
- configuration - package configurations

Remember to launch migration:

    php artisan migrate

Next step is to add cron task via Scheduler (app\Console\Kernel.php):

    protected function schedule(Schedule $schedule)
    	// ...


  1. Add website and keyword:
    $fetcher = new KeywordRankFetcher(Config::get('keywordrank'));
    $website = $fetcher->addWebsite('www.lnidigital', 'LNI Digital Marketing', 1);  // last parameter is user id
    $keyword = $fetcher->addKeyword($website->id, 'Ashburn Digital Marketing', 1); // last parameter is user id
  1. Get Google keyword position
    $fetcher = new KeywordRankFetcher(Config::get('keywordrank'));
    $position = $fetcher->getPosition('','Ashburn Digital Marketing',true);
  1. Get Google keyword position from console command
    php artisan fetch:rank 'Ashburn Digital Marketing'

By default, above command uses cache if it's run more than once within 24 hours. If you don't want to use cache, for testing purpose for example, you can add '--nocache' optional argument at the end.



  • Create package


  • Make the package work with any other proxy services


This package is created by Seong Bae. The package utilizes free Google Rank Checker at and simple dom parser at