CC Piwik is a wrapper for the Piwik Reporting API ( http://developer.piwik.org/api-reference/reporting-api ) written in PHP5.