定制 nticaric/majestic-seo-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nticaric/majestic-seo-api

Composer 安装命令:

composer require nticaric/majestic-seo-api

包简介

PHP library for making requests to the Majestic SEO API

README 文档

README

Total Downloads

majestic-seo-api

PHP library for making requests to the Majestic SEO API

##Instalation

The easiest way to install Majestic SEO API is via composer. Create the following composer.json file and run the php composer.phar install command to install it.

{
    "require": {
        "nticaric/majestic-seo-api": "1.0.*"
    }
}

##Examples

GetBackLinkData

This function returns information of the backlinks at domain, subdomain or URL level.

Usage:

    use Nticaric\Majestic\MajesticAPIService;

    //if the second parameter is set to true, the sanbox mode is used
    $service = new MajesticAPIService("your_api_key", true);
    $params = array(
        'MaxSameSourceURLs' => 1
    );

    $response = $service->getBackLinkData('example.com', $params);

    print_r( (string) $response->getBody());

Another way to do the same is:

    use Nticaric\Majestic\MajesticAPIService;

    //if the second parameter is set to true, the sanbox mode is used
    $service = new MajesticAPIService("your_api_key", true);
    $params = array(
        'item' => 'example.com',
        'MaxSameSourceURLs' => 1
    );

    $response = $service->executeCommand('GetBackLinkData', $params);

    print_r( (string) $response->getBody());

The executeCommand method lets you execute any method available with according parameters. To see what commands are available take a look at the documentation

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 5
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GNU
  • 更新时间: 2014-10-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固