2017 © Pedro PelĆ”ez
 

library analytics

Retrieve analytics data

image

joaofigueira/analytics

Retrieve analytics data

  • Friday, November 14, 2014
  • by joaopfigueira
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Analytics Reporter

Reports analytics data., (*1)

Currently working with Piwik., (*2)

Installation via composer

{
    require: {
        "joaofigueira/analytics": "2.*"
    }
}

Usage example

<?php
use Analytics\DataSources\Piwik;
use Analytics\Querys\Browsers as Analytics; //check out the Querys folder, lots of ready to use Querys in there!

$auth = new Piwik($url, $token, $idSite); //engine(Piwik), url, token, idSite

$result = new Analytics($auth); 
$result ->startDate('2014-10-01')
        ->endDate('2014-10-15');

$analyticsData  = $result->fetchData();
$analyticsgraph = $result->fetchGraph();

Extending

<?php
use Analytics\Analytics;

class NewExtension extends Analytics
{
  //here you can write your own code to query the API
}

The Versions

14/11 2014

dev-master

9999999-dev

Retrieve analytics data

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

14/11 2014

v2.0.0

2.0.0.0

Retrieve analytics data

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

31/10 2014

v1.1.0

1.1.0.0

Retrieve analytics data

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

23/10 2014

v1.0.1

1.0.1.0

Retrieve analytics data

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

23/10 2014

v1.0.0

1.0.0.0

Retrieve analytics data

  Sources   Download

BSD-3-Clause