2017 © Pedro Peláez
 

library mixguzzle

A PHP client library for Mixpanel's data export API using Guzzle

image

jlinn/mixguzzle

A PHP client library for Mixpanel's data export API using Guzzle

  • Monday, April 11, 2016
  • by jlinn
  • Repository
  • 3 Watchers
  • 5 Stars
  • 15,949 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MixGuzzle, a PHP Mixpanel data export API client using Guzzle

Operations are named based on their request URIs as outlined in Mixpanel's API documentation., (*1)

//example client instantiation and API call
$client = MixGuzzle\MixGuzzleClient::factory(array(
    'api_key' => 'your_api_key',
    'api_secret' => 'your_api_secret'
));
$command = $client->getCommand('events', array(
    'event' => array('Homepage Visit'),
    'type' => 'unique',
    'unit' => 'day',
    'interval' => 10
));
$response = $client->execute($command);

Installing via Composer:

# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add MixGuzzle as a dependency
php composer.phar require jlinn/mixguzzle

After installing, you need to require Composer's autoloader:, (*2)

require 'vendor/autoload.php';

The Versions

11/04 2016

dev-master

9999999-dev

A PHP client library for Mixpanel's data export API using Guzzle

  Sources   Download

MIT

The Requires

 

guzzle mixpanel mixpanel api mixguzzle