This demo uses the PHP SDK, a part of Optimizely's Full Stack solution. Check out the live demo.
Optimizely Full Stack allows developers to run experiments anywhere in their code! The PHP SDK provides the core components to run a full stack experiment with Optimizely. It handles aspects like bucketing, which is used to designate users to a specific experiment variation, conversion tracking, and reporting via Optimizely’s Stats Engine.
-
View the PHP Getting Started Guide
-
View the reference documentation.
-
Latest PHP SDK
This example app simulates an online retailer testing the effects of sorting products by price vs category.
Using the instructions below, you can run the app locally and mimic bucketing website visitors by entering unique user IDs into the search bar. For example, the user ID “Matt” would simulate a unique visitor and select a specific variation for that unique visitor. The variation that is given to a specific unique visitor, such as Matt, will be deterministic. This means as long as the experiment conditions remain the same, Matt will always get the same variation.