2017 © Pedro Peláez
 

library laravel-mixpanel

Bundle mixpanel for Laravel 5

image

hydrarulz/laravel-mixpanel

Bundle mixpanel for Laravel 5

  • Monday, June 15, 2015
  • by hydrarulz
  • Repository
  • 3 Watchers
  • 0 Stars
  • 354 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

laravel-mixpanel

Install it with, (*1)

composer require "hydrarulz/laravel-mixpanel:dev-master"

Add the service provider at the end of the providers array in file config/app.php:, (*2)

'Hydrarulz\LaravelMixpanel\LaravelMixpanelServiceProvider',

The service provider will register an interface, but you should also register the alias at the end of the aliases array:, (*3)

'LaravelMixpanel' => 'Hydrarulz\LaravelMixpanel\Facades\LaravelMixpanel',

Then the you should publish the config file with php artisan vendor:publish This creates your config file /config/laravel-mixpanel.php that looks like this:, (*4)

<?php

return [
    'token' => 'YOUR TOKEN HERE'
];

Replace with your Mixpanel token., (*5)

After this you can start using it in your application, (*6)

$mixpanel = LaravelMixpanel::getInstance();
$mixpanel->people->set(
    $user->mixpanel_id
    , [
        'name' => 'Daniel Luca'
    ]
);
$mixpanel->track(
    'Event'
    , [
        'Type' => 'Click'
    ]
);

The Versions

15/06 2015

dev-master

9999999-dev

Bundle mixpanel for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel analytics laravel5 mixpanel

15/06 2015

dev-stable

dev-stable

Bundle mixpanel for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel analytics laravel5 mixpanel