PHP code example of aztech / event-bus-extra-mixpanel

1. Go to this page and download the library: Download aztech/event-bus-extra-mixpanel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aztech / event-bus-extra-mixpanel example snippets




use \Aztech\Events\Bus\Events;
use \Aztech\Events\Bus\Plugins\Mixpanel\Mixpanel;

Mixpanel::loadPlugin('mix');

// See options chart for actual parameters
$options = array('project-token' => 'YOUR_TOKEN');

$publisher = Events::createPublisher('mix', $options);
$event = Events::create('category', array('property' => 'value'));

$publisher->publish($event);
// ...