dev-master
9999999-dev https://slik.ioPHP Library for SlikIO - Charts for developers
MIT
The Requires
- php >=5.0.0
- shuber/curl *
by SlikIO
sdk charts graphs slikio slik.io
Wallogit.com
2017 © Pedro Peláez
PHP Library for SlikIO - Charts for developers
This is the SlikIO PHP SDK that allows you to access SlikIO from your PHP app., (*1)
First, register to SlikIO if you haven't done so already, then get the private API key, and initialize the framework:, (*2)
require_once 'vendor/autoload.php';
$slikio = new SlikIO('YOUR_PRIVATE_API_KEY');
With Composer:
* Add the "slikio/php-sdk": "dev-master" into the require section of your composer.json.
* Run composer install, (*3)
To push data to your collection use the sendData method:, (*4)
$slikio->sendData(COLLECTION_ID, data);
Example:, (*5)
$slikio->sendData("col_3890fc01750b17412", array(
'user_id' => '123123',
'email' => 'user@email.com',
'action' => 'planPurchased',
'cost' => 150.0
));
PHP Library for SlikIO - Charts for developers
MIT
sdk charts graphs slikio slik.io