i can not to integrate mixpanel tracking with php on a symfony2 project without composer.
I have download the folder mixpanel-php and put it on my project.
i'm calling it like that:
require 'mixpanel-php/lib/Mixpanel.php';
$mp = Mixpanel::getInstance("MY_TOKEN");
$mp->track("index page");
but it does not work an the response is
Fatal error: Class 'WittPic\WebBundle\Controller\Mixpanel' not found in C:\wamp\www\wittpic\httpdocs\src\WittPic\WebBundle\Controller\PublicController.php on line 22
Mixpanel doesn't use namepsaces, so all its classes loaded into root namespace. You have to tell PHP to load Mixpanel
class from root namespace by prefixing it with backslash \
$mp = \Mixpanel::getInstance("MY_TOKEN");