jlinn / mixguzzle
A PHP client library for Mixpanel's data export API using Guzzle
Installs: 16 396
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: >=5.3.2
- guzzle/guzzle: 3.*
This package is not auto-updated.
Last update: 2024-11-09 15:41:14 UTC
README
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';