backlinklog / sdk
There is no license information available for the latest version (dev-main) of this package.
PHP SDK for the BacklinkLog Public API
dev-main
2026-04-18 22:41 UTC
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2026-04-18 22:49:02 UTC
README
🐘 BacklinkLog PHP SDK
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-curlandext-jsonwithout 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:
- 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.