tirreno/tirreno-tracker

PHP client for tirreno security analytics API

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/tirreno/tirreno-tracker

1.0.4 2026-01-06 16:36 UTC

This package is not auto-updated.

Last update: 2026-01-07 05:27:30 UTC


README

This is the official PHP implementation of the tirreno Tracking API.

<?php

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

$tirrenoUrl = "https://example.tld/sensor/"; // Sensor URL
$trackingId = "XXX"; // Tracking ID

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

// Override defaults of required params
$tracker->setUserName("johndoe42")
        ->setIpAddress("1.1.1.1")
        ->setUrl("/login")
        ->setUserAgent("Mozilla/5.0 (X11; Linux x86_64)")
        ->setEventTypeAccountLogin();

// Set optional params
$tracker->setFirstName("John")
        ->setBrowserLanguage("fr-FR,fr;q=0.9")
        ->setHttpMethod("POST");

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

Requirements

  • cURL PHP extension

Installation

Composer

composer require tirreno/tirreno-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.