dev-master
9999999-dev https://github.com/xSTyled/PiwikClientSimple client for Piwik (web analytics) API.
MIT
The Requires
- php >=5.3.0
- symfony/framework-bundle 2.*
- kriswallsmith/buzz ~0.13
by KnpLabs Team
analytics knplabs piwik knp xstyled
Simple client for Piwik (web analytics) API.
PHP 5.3 client for Piwik web analytics., (*1)
Through HTTP connection:, (*2)
<?php $connection = new Knp\PiwikClient\Connection\HttpConnection('http://demo.piwik.org'); $client = new Knp\PiwikClient\Client($connection, 'YOUR_API_TOKEN'); $array = $client->call('API.getReportMetadata', array('idSites' => array(23, 55)));
Through local (PHP) connection:, (*3)
<?php require_once PIWIK_INCLUDE_PATH . "/index.php"; require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php"; Piwik_FrontController::getInstance()->init(); $connection = new Knp\PiwikClient\Connection\PiwikConnection(); $client = new Knp\PiwikClient\Client($connection, 'YOUR_API_TOKEN'); $array = $client->call('API.getReportMetadata', array('idSites' => array(23, 55)));
To see all available methods & their parameters, visit Piwik API Reference., (*4)
PiwikClient Copyright (c) 2011 KnpLabs http://www.knplabs.com. See LICENSE for details., (*5)
Simple client for Piwik (web analytics) API.
MIT
analytics knplabs piwik knp xstyled