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 yesterday

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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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/10709555?v=4)[Lewis Dimmick ](/maintainers/LunarDevelopment)[@LunarDevelopment](https://github.com/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

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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