PHP code example of rudderstack / rudder-php-sdk
1. Go to this page and download the library: Download rudderstack/rudder-php-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rudderstack / rudder-php-sdk example snippets
use Rudder\Rudder;
_KEY, array(
"data_plane_url" => DATA_PLANE_URL,
"consumer" => "lib_curl",
"debug" => true,
"max_queue_size" => 10000,
"flush_at" => 100
));
Rudder::track(array(
"userId" => "f4ca124298",
"event" => "Signed Up",
"properties" => array(
"plan" => "Enterprise"
)
));