Skip to content

Backlink-Log/php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

PHP SDK for the BacklinkLog API. Submit listings, retrieve backlink data, and integrate discovery workflows into your PHP applications. Designed for simplicity and fast integration. Ideal for startups looking to automate SEO and visibility. More info: https://backlinklog.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages