PHP

PHP

This library lets you record analytics data from your PHP code. It is a little different than other server-side libraries in that PHP is a single-threaded language, meaning it only processes once language at a time.

Getting Started with PHP

Step 1

Clone the PHP integration into your application directory.

gitclonehttps://github.com/astronomerio/analytics-php

Step 2

Add the following to your code to load in the library.

require_once(\"/path/to/analytics-php/lib/Segment.php\");

Step 3

Initialize the module with the Source ID found in the setting sections of your Astronomer account. Note that you are only required to do this initialization once.