Skip to content

jlinn/mixguzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

//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:

require 'vendor/autoload.php';

About

A PHP Mixpanel data export API client using Guzzle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages