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.
- Standard Compliant: Supports PSR-4 autoloading via Composer.
- Zero Heavy Dependencies: Operates perfectly using native
ext-curlandext-jsonwithout requiring heavy wrappers like Guzzle. - Easy Error Resolution: Graceful Exception handling via structured HTTP status evaluations.
Require this package with composer:
composer require backlinklog/sdk<?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();
}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 |
To get the most out of the API and its source data, check out these references:
- BacklinkLog Directory - Read the core metrics.
- Official Data API Docs - Read the explicit specs.
- Sponsorships - Find who sponsors us.
- Blog & Insights.
Designed for publishers, built by BacklinkLog.com.