Skip to content

tirrenotechnologies/tirreno-php-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tirreno PHP tracker library

Send user data from your web app or site to tirreno.

// Load object
require_once("TirrenoTracker.php");

$tirrenoUrl = "https://example.tld";
$trackingId = "XXX";

// Create object
$tracker = new TirrenoTracker($tirrenoUrl, $trackingId);

// Override defaults of required params
$tracker->setUserName($currentUser->username);      // johndoe42

// Set optional params
$tracker->setFirstName($currentUser->firstname)     // John
        ->setLastName($currentUser->lastname)       // Doe
        ->setEmailAddress($currentUser->email);     // user@email.com

// Track event
$tracker->sendEvent();

Requirements

  • cURL PHP extension

Installation

Composer

composer require tirreno/tirreno-php-tracker

Manualy

Via file download.

require_once("TirrenoTracker.php");

License

Released under the BSD License. tirreno is a registered trademark of tirreno technologies sàrl, Switzerland.

About

Send event data from your PHP application to tirreno security analytics.

Topics

Resources

License

Stars

Watchers

Forks

Languages