Skip to content

A wrapper for the Optimizely SDK.

Notifications You must be signed in to change notification settings

TemperWorks/laravel-optimizely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A wrapper for the Optimizely SDK.

Webhook

A webhook is exposed at POST /optimizely/webhook to be called by Optimizely when the configuration needs to be reloaded.

Caching

The activate() call is cached to reduce usage of Optimizely impressions.

Basic usage in TemperWeb

use Optimizely

...

$variant = Optimizely::activate(new Experiment(auth()->user()));
$variant = Experiment::activate(auth()->user());
---- OR
$isFeatureEnabled = Optimizely::isFeatureEnabled(new Experiment(auth()->user());
$isFeatureEnabled = Experiment::isEnabled(auth()->user());