承接 seongbae/keywordrank 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seongbae/keywordrank

Composer 安装命令:

composer require seongbae/keywordrank

包简介

A Laravel package for getting keyword positions from Google

README 文档

README

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

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' => [
    // ...
    seongbae\KeywordRank\KeywordRankServiceProvider::class,
];

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)
    {
    	// ...
        $schedule->command('keywords:fetch')->daily();
    }

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
  1. Get Google keyword position
    $fetcher = new KeywordRankFetcher(Config::get('keywordrank'));
    $position = $fetcher->getPosition('www.lnidigital.com','Ashburn Digital Marketing',true);
  1. 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

1.0

  • Create package

Roadmap

  • Make the package work with any other proxy services

Credits

This package is created by Seong Bae. The package utilizes free Google Rank Checker at http://google-rank-checker.squabbel.com/ and simple dom parser at https://github.com/sunra/php-simple-html-dom-parser.

统计信息

  • 总下载量: 147
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固