🗓️ Live Webinar August 17: How Allbirds solves identity resolution in the warehouse with dbt Labs, Snowflake, and RudderStack

Register Now

PHP SDK integration with RudderStack

Get more out of RudderStack's PHP SDK

As PHP is a single-threaded environment, you cannot use a queue in a separate thread or a connection pool to flush messages. Instead, you can specify different consumers to make requests to RudderStack servers. The lib-curl consumer is preferable for low-volume sources, and the fork-curl consumer should work best for cases where you can't use persistent sockets. You can use both of these for faster response times under light loads. However, the lib-curl consumer is RudderStack's default PHP library.

image-91cea5d216cc1787ee6a28058b838a49134710c7-490x437-svg

What you can do with PHP SDK

Automatically capture certain event-specific and user-specific information that highlight a customer's unique behavioral traits

Enable or disable destinations from the integrations dictionary, based on your preference

Record user's screenviews on your mobile app along with the other relevant information about the app screen

Control the amount of log you want to see from the SDK along with the minimum waiting time to flush the events to the server

How to set up PHP SDK Integration?

It's quite simple! Refer to our step-by-step guide and start using the PHP SDK in no time!

image-2ec6ed8f1de455376fcc3c569af717a6ba7d1239-400x200-png
cust-logo
cust-logo

FAQ

How can we help you?

What does the RudderStack PHP SDK do?

The open-source RudderStack PHP SDK lets you record customer event data from your PHP code. After this, you can route your customer data to any analytics service you enable on your destination page.

How do you send events from RudderStack using the PHP SDK?

You need to install RudderStack PHP SDK using composer and initialize the RudderStack Client. Once you initialize the RudderStack client, you can send relevant customer events from the RudderStack client.

Customer Data Platform for Developers | RudderStack
HIPPA Compliant
SOC 2 TYPE 2