2017 © Pedro Peláez
 

symfony-bundle piwik-bundle

Symfony bundle for querying the piwik reporting api

image

prg/piwik-bundle

Symfony bundle for querying the piwik reporting api

  • Sunday, October 12, 2014
  • by pguso
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PiwikBundle

Wrapper to call the Piwik Reporting API

Installation:

Run composer. Then add: ``` PHP $bundles = array( new CiscoSystems\PiwikBundle\CiscoSystemsPiwikBundle(), );, (*1)


Setup: ====== Add and adapt to your need the following to the ```app/config/config.yml``` file: ``` YML cisco_systems_piwik: url: http://piwik.demo-site.com token: anonymous site_id: 1 format: json

Usage:

Call the service cisco.piwik.client., (*2)

Assign the variable you would normally use if you were to query the API directly (see [the reporting API] (http://developer.piwik.org/api-reference/reporting-api) )., (*3)

``` php $client = $this->container->get( 'cisco.piwik.client' ); $client->setLanguage('en');, (*4)


Then load the desired module: ``` php $visitsSummary = $client->getModule( 'VisitsSummary' );

Finally call the Method to get the data back:, (*5)

php return $visitsSummary->getVisits();, (*6)

The Versions

12/10 2014

dev-master

9999999-dev

Symfony bundle for querying the piwik reporting api

  Sources   Download

MIT

The Requires

 

api analytics piwik reporting