javadi/daart-ads

Smart Ads PHP Library by Daart Company

1.1.0 2023-02-18 15:49 UTC

This package is auto-updated.

Last update: 2025-07-18 20:56:28 UTC


README

You can use this library to access the DaartAds APIs.

Requirements

Installation

composer require javadi/daart-ads

Usage

require __DIR__ . "/../vendor/autoload.php";

// Your api key needs to be initialised here.
$DaartADS = new \javadi\DaartAgency\DaartAds(YOUR_API_KEY);

// For Get ADS:
$ads = $DaartADS->GetADS();
  • You will receive a list with all the information for the show ADS
{
  "image_url": "IMAGE_LINK",
  "url": "REDIRECT_LINK"
}

From versions V1.1 and after, we'll provide the redirect link for you; you don't need to construct it yourself.

A complete demo is available at Demo/demo.php