Download the PHP package exads/exads-api-client-php without Composer
On this page you can find all versions of the php package exads/exads-api-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exads/exads-api-client-php
More information about exads/exads-api-client-php
Files in exads/exads-api-client-php
Package exads-api-client-php
Short Description Exads API client
License MIT
Homepage https://github.com/EXADS/exads-api-client-php
Informations about the package exads-api-client-php
Exads API PHP Client
A simple Object Oriented wrapper for Exads API, written with PHP5.
See Exads API's documentation.
Features
- Follows PSR-0 conventions and coding standard: autoload friendly
- API entry points implementation state :
- Campaign
- Collection
- Login
- Payment
- Site
- Statistics
- User
- Zones
Requirements
- PHP >= 5.4
- The PHP cURL extension
- The PHP JSON extension
- PHPUnit >= 4.0 (optional) to run the test suite
Install
Composer
Composer users can simply run:
at the root of their projects. To utilize the library, include
Composer's vendor/autoload.php in the scripts that will use the
Exads classes.
For example,
Standalone (not recommended)
The library ships with a basic autoload.php file which allows you to use it without composer. See the latest version available : https://github.com/EXADS/exads-api-client-php/releases
Then your bootstrap script should look like :
Basic usage of exads-api-client-php client
See test/Exads/Tests/UrlsTest.php for a full list of available methods.
Passing parameters to end points
As describe in the API documentation, most of the GET entry points accept parameters for filtering the result of the call.
In particular, for long collections, you should use offset for paginating the results the API returns (you cannot get more than 50 elements out of 1 call, that's when offset comes in play).
See the following examples :
Please refer to the documentation for the full list of parameters allowed for each entry point.
All versions of exads-api-client-php with dependencies
ext-curl Version *
ext-json Version *