javadi / daart-ads
Smart Ads PHP Library by Daart Company
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/javadi/daart-ads
Requires
- php: >=7.3
- ext-curl: *
- ext-json: *
README
You can use this library to access the DaartAds APIs.
Requirements
- PHP >= 7.3
- Your server has to have CURL enabled. (How to enable CURL)
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.