There is no license information available for the latest version (dev-main) of this package.

PHP SDK for the BacklinkLog Public API

Maintainers

Package info

github.com/Backlink-Log/php-sdk

pkg:composer/backlinklog/sdk

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-18 22:41 UTC

This package is auto-updated.

Last update: 2026-04-18 22:49:02 UTC


README

BacklinkLog PHP SDK Header

🐘 BacklinkLog PHP SDK

Minimum PHP Version Packagist Version License: MIT

The official PHP SDK for integrating the BacklinkLog Public Data API directly into your PHP application.

BacklinkLog exposes an open public directory containing hundreds of tech domains, startups, sponsors, and country-level keyword insights. Whether you're building a dashboard in Laravel, Symfony, or pure vanilla PHP, this robust package allows you to query domain directories freely with no API keys.

✨ Highlights

  • Standard Compliant: Supports PSR-4 autoloading via Composer.
  • Zero Heavy Dependencies: Operates perfectly using native ext-curl and ext-json without requiring heavy wrappers like Guzzle.
  • Easy Error Resolution: Graceful Exception handling via structured HTTP status evaluations.

📦 Installation

Require this package with composer:

composer require backlinklog/sdk

💻 Quick Start

<?php

require_once 'vendor/autoload.php';

use BacklinkLog\BacklinkLogClient;

$client = new BacklinkLogClient();

try {
    // 1. Search our Backlink/Domain directory
    echo "Searching for 'technology'...\n";
    $results = $client->searchDomains('technology', 1, 15);
    
    foreach ($results['data'] as $website) {
        echo "- " . $website['name'] . " (" . $website['country'] . ")\n";
    }

    // 2. Fetch recent domains
    $recentData = $client->getRecentlyAddedDomains(1, 5);
    echo "\nRecently added domains count: " . count($recentData['data']) . "\n";

} catch (Exception $e) {
    echo "Whoops! An error occurred: " . $e->getMessage();
}

📚 API Reference

Here are the primary methods exposed by the BacklinkLogClient class.

Method Parameters Returns
searchDomains string $query, ?int $page, ?int $perPage array
getRecentlyAddedDomains ?int $page, ?int $perPage array
getDomainsByCountry string $countryCode array
getDomainsByKeyword string $keyword array
getCountries None array
getKeywords None array
getActiveSponsors None array

🔗 Important Links

To get the most out of the API and its source data, check out these references:

Designed for publishers, built by BacklinkLog.com.