Skip to content

gruppodigitouch/adform-php-sdk

Repository files navigation

AdForm SDK for PHP

Build Status Latest Stable Version

The AdForm SDK for PHP to access AdForm's API

Installation

$ composer require digitouch/adform-php-sdk

Usage

$api = new ApiFactory(new HttpClient);
$ticket = $api->auth('<username>', '<password>');
$result = $api->call(ApiFactory::ADVERTISERS, $ticket, ['Names' => '<name-filter>']);

Examples

Same code examples are located in the "examples" dir. Find and rename config.php.dist to config.php and edit with your AdForm credentials. Finally run with:

$ php examples/advertisers.php

Endpoints

Currently implemented Endpoints:

Run Tests

Use [Composer] to download dependencies:

$ composer install

Then run:

$ ./vendor/bin/phpunit