PHPackages                             vsmartcode/keywordrank - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vsmartcode/keywordrank

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vsmartcode/keywordrank
======================

A Laravel package for getting keyword positions from Google

151PHPCI failing

Since May 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vsmartcode/keywordrank)[ Packagist](https://packagist.org/packages/vsmartcode/keywordrank)[ RSS](/packages/vsmartcode-keywordrank/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Keyword Rank
====================

[](#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.

Installation
------------

[](#installation)

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

```
    "require": {
        "vsmartcode/KeywordRank": "1.*"
    }
```

Run `composer update` to install the package.

Or simpy run `composer require vsmartcode/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' => [
    // ...
    vsmartcode\KeywordRank\KeywordRankServiceProvider::class,
];
```

Next, publish all package resources:

```
    php artisan vendor:publish --provider="vsmartcode\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)
    {
    	// ...
        $schedule->command('keywords:fetch')->daily();
    }
```

Usage
-----

[](#usage)

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
```

2. Get Google keyword position

```
    $fetcher = new KeywordRankFetcher(Config::get('keywordrank'));
    $position = $fetcher->getPosition('www.lnidigital.com','Ashburn Digital Marketing',true);
```

3. Get Google keyword position from console command

```
    php artisan fetch:rank www.lnidigital.com '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.

Changelog
---------

[](#changelog)

1.0

- Create package

Roadmap
-------

[](#roadmap)

- Make the package work with any other proxy services

Credits
-------

[](#credits)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4949809?v=4)[vsmartcode](/maintainers/vsmartcode)[@vsmartcode](https://github.com/vsmartcode)

---

Top Contributors

[![vsmartcode](https://avatars.githubusercontent.com/u/4949809?v=4)](https://github.com/vsmartcode "vsmartcode (8 commits)")

### Embed Badge

![Health badge](/badges/vsmartcode-keywordrank/health.svg)

```
[![Health](https://phpackages.com/badges/vsmartcode-keywordrank/health.svg)](https://phpackages.com/packages/vsmartcode-keywordrank)
```

###  Alternatives

[components/font-awesome

Font Awesome, the iconic SVG, font, and CSS framework.

1954.2M61](/packages/components-font-awesome)[arcanedev/seo-helper

SEO Helper is a framework agnostic package that provides tools &amp; helpers for SEO (Laravel supported).

332467.0k4](/packages/arcanedev-seo-helper)[izi-dev/nova-conditional-field

Conditional Field

1623.9k](/packages/izi-dev-nova-conditional-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
