Download the PHP package dekalee/adback-analytics without Composer
On this page you can find all versions of the php package dekalee/adback-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dekalee/adback-analytics
More information about dekalee/adback-analytics
Files in dekalee/adback-analytics
Package adback-analytics
Short Description A php lib to call the AdBack api
License Apache-2.0
Informations about the package adback-analytics
Adback/Analytics
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.