Registry / utility / segmentio-analytics-php

segmentio-analytics-php

JSON →
library3.8.2phppackagistunverified

PHP library for sending analytics events to Segment.

composer require segmentio/analytics-php
INSTALL
IMPORT
SIG · SEGMENTIO-ANALYTIC
S
segmentio-analytics-php
utilityphpv3.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use Segment\Analytics\Client;

Initializes the client and tracks an event.

use Segment\Analytics\Client; $client = new Client('YOUR_WRITE_KEY'); $client->track(['userId' => '123', 'event' => 'Page Viewed']);
Debug
Known issues
breakingRequires PHP 7.4+
fix
Upgrade PHP to version 7.4 or higher.
affects: <3.0.0
Upgrade
Version history
3.8.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
segmentio-analytics-php — pip install segmentio-analytics-php · libregistry