{"repo":"mixpanel/mixpanel-php","free":true,"listed":false,"github":"https://github.com/mixpanel/mixpanel-php","clone":"git clone https://github.com/mixpanel/mixpanel-php.git","description":null,"language":"PHP","stars":141,"topics":["sdk"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Mixpanel PHP Library ============ May 13, 2026 - 2.11.0 This library provides an API to track events and update profiles on Mixpanel. Install with Composer ------------ Add mixpanel/mixpanel-php as a dependency and run composer update Now you can start tracking events and people: Install Manually ------------ 1. Download the Mixpanel PHP Library 2. Extract the zip file to a directory called \"mixpanel-php\" in your project root 3. Now you can start tracking events and people: Production Notes ------------- By default, data is sent using ssl over cURL. This works fine when you're tracking a small number of events or aren't concerned with the potentially blocking nature of the PHP cURL calls. However, this isn't very efficient when you're sending hundreds of events (such as in batch processing). Our library comes packaged with an easy way to use a persistent socket connection for much more efficient writes. To enable the persistent socket, simply pass 'consumer' = 'socket' as an entry in the $options array when you instantiate the Mixpanel class. Additionally, you can contribute your own persistence implementation by creating a custom Consumer. Testing ------------- mixpanel-php uses phpunit as the testing framework. Please ensure that composer is up to date. To run tests, execute composer run-script unit-tests on the root directory. Documentation ------------- Reference Docs Full API Reference For further examples and options checkout out the \"examples\" folder Changelog --------","default_branch":null,"files":null,"tree":[],"storefront":"/r/mixpanel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mixpanel/mixpanel-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}