2017 © Pedro Peláez
 

library majestic-seo-api

PHP library for making requests to the Majestic SEO API

image

nticaric/majestic-seo-api

PHP library for making requests to the Majestic SEO API

  • Monday, February 12, 2018
  • by nticaric
  • Repository
  • 5 Watchers
  • 4 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

Total Downloads, (*1)

majestic-seo-api

PHP library for making requests to the Majestic SEO API, (*2)

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., (*3)

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

Examples

GetBackLinkData

This function returns information of the backlinks at domain, subdomain or URL level., (*4)

Usage:, (*5)


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:, (*6)


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, (*7)

The Versions

12/02 2018

dev-master

9999999-dev http://github.com/nticaric/majestic-seo-api

PHP library for making requests to the Majestic SEO API

  Sources   Download

MIT GNU GENERAL PUBLIC LICENSE

The Requires

 

The Development Requires

27/03 2015

v1.0.0

1.0.0.0 http://github.com/nticaric/majestic-seo-api

PHP library for making requests to the Majestic SEO API

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

 

The Development Requires