What the PHP SDK allows you to do
Add A/B Test experimentation to your PHP application with minimal setup.
Handle all the communication with the PageSense REST APIs securely using HTTPS.
Automatically fetch and cache project settings to keep the experiments in sync.
Capture and send visit and goal events (engagements, conversions, interactions) instantly.
Store and use the user attributes for audience targeting and report segmentation.
PageSense PHP SDK acts as a lightweight communication layer between your PHP application and PageSense’s FullStack experimentation platform. Once initialized, it can:
Fetch all active experiments associated with your project.
Determine which variation should be served for each user or session.
Track visits and conversions and send the real-time metrics back to PageSense for analysis.
Install Composer
a. To install the Composer in Windows machine, run the following PowerShell commands.
b. To install the Composer in Mac/Linux machine, run the following commands in Terminal.
Install PageSense PHP SDK
Run the following command in your Project root folder to install the PageSense PHP SDK
If you prefer to integrate the PageSense PHP SDK manually, you can download the package from the link and include it in your application -: PHP SDK.
PHP 8.1 or above