$apiKey = 123456;
$amplitudeClient = new \Amplitude\AmplitudeClient($apiKey);
$amplitudeEvent = new \Amplitude\AmplitudeEvent();
// For user properties
$amplitudeEvent->set('city_id', 123)
->set('country_id', 34);
// For event properties
$amplitudeEvent->addToEventProperties('revenue', 12.34);
$response = $amplitudeClient->track($amplitudeEvent);
forked from minube/Amplitude-PHP
PHP SDK for Amplitude
License
pdffiller/Amplitude-PHP
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP SDK for Amplitude
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%