PHPackages                             lunardevelopment/majestic - 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. [API Development](/categories/api)
4. /
5. lunardevelopment/majestic

ActiveProject[API Development](/categories/api)

lunardevelopment/majestic
=========================

Package to communicate with Majestic.com Live and Sandbox URLs.

281PHP

Since Mar 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/LunarDevelopment/MajesticAPI)[ Packagist](https://packagist.org/packages/lunardevelopment/majestic)[ RSS](/packages/lunardevelopment-majestic/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Majestic API
================

[](#php-majestic-api)

A package to allow communication with Majestic.com API, through production or sandbox environments.

Prerequisits
------------

[](#prerequisits)

- An API key from [Majestic API console](https://majestic.com/account/api#api-keys)
- PHP &gt;5.4
- Composer (optional)

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

[](#installation)

Via composer

`composer require lunardevelopment/majestic`

Via ZIP

Download this ZIP and manually include

```
require_once 'theUnzippedDirectory/src/Majestic.php'
```

Usage
-----

[](#usage)

See in depth commands and parameters at [Majestic.com API Commands](https://developer-support.majestic.com/api/commands/)

### GetIndexItemInfo

[](#getindexiteminfo)

```
    use LunarDevelopment\Majestic;

    $majestic_api_key = "YOUR_API_KEY";
    $domain = "example.com";

    $service = new Majestic($majestic_api_key, false);

    $params = array(
        'datasource'=>'fresh',
        'item0' => $domain ,
        'items' => 1
    );

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

    $majestic_json_data = json_encode(json_decode($response->getBody())->DataTables->Results->Data[0]);

    dd($majestic_json_data);
```

### GetBackLinkData

[](#getbacklinkdata)

```
    use LunarDevelopment\Majestic;

    $majestic_api_key = "YOUR_API_KEY";
    $domain = "example.com";

    $service = new Majestic($majestic_api_key, false);

    $params = array(
        'item' => $domain,
        'datasource' => 'fresh',
        'Count' => 1000,
        'Mode' => 1,
        'ShowDomainInfo' => 1,
        'MaxSourceURLsPerRefDomain' => 1,
        'MaxSameSourceURLs' => 1,
        'FilterTopicsRefDomainsMode' => 1
    );

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

    $backlinks = json_decode($response->getBody())->DataTables->BackLinks->Data;

    dd($backlinks);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

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://www.gravatar.com/avatar/b686f28ae134489123273b1756c792163b178ae26590f11c2e8aa5c4e78e22d6?d=identicon)[LunarDevelopment](/maintainers/LunarDevelopment)

---

Top Contributors

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

---

Tags

apimajesticphp

### Embed Badge

![Health badge](/badges/lunardevelopment-majestic/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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