Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

AlayaCare/Amplitude-PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Amplitude PHP

How to use it

$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);

About

PHP SDK for Amplitude

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%