Download the PHP package adback/adback-sdk-php without Composer
On this page you can find all versions of the php package adback/adback-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adback/adback-sdk-php
More information about adback/adback-sdk-php
Files in adback/adback-sdk-php
Package adback-sdk-php
Short Description sdk php to call AdBack api
License Apache-2.0
Informations about the package adback-sdk-php
Adback/ApiClient
This PHP library will call the AdBack API and will generate the JavaScript tag that should be placed on all the pages.
See the AdBack website for more informations.
See the AdBack documentation for an installation guide.
Usage
Both the Query
and Generators
will need a driver which implements
the ScriptCacheInterface
to work.
A driver for Redis is already available.
Usage Exemple
Installation
Use composer to install the lib :
Usage with Redis
Query the api
First you need to query the api to warmup the cache in a Redis data store :
Generate the scripts
In your page, preferably in the <head>
, use the generator to create the script :
You could do the same to create the other scripts by using the appropriate generators.
Usage with MySQL
Create the table
To create the table used to store the data in MySQL, run the query:
With the PDO driver
Query the api
First you need to query the api to warmup the cache in a Mysql table :
Generate the scripts
In your page, preferably in the <head>
, use the generator to create the script :
You could do the same to create the other scripts by using the appropriate generators.
With the Mysqli driver
Query the api
First you need to query the api to warmup the cache in a Mysql table :
Generate the scripts
In your page, preferably in the <head>
, use the generator to create the script :
You could do the same to create the other scripts by using the appropriate generators.
Usage with Full script save and Redis
Query the api
First you need to query the full script api to warmup the cache in a Redis data store :
Generate the code
In your page, use the generator to create the code :
You could do the same to create the other scripts by using the appropriate generators.
Usage with Full script save and Redis with predis/predis
Query the api
First you need to query the full script api to warmup the cache in a Redis data store :
Generate the code
In your page, use the generator to create the code :
You could do the same to create the other scripts by using the appropriate generators.