Download the PHP package leroy-merlin-br/laravel-optimizely without Composer
On this page you can find all versions of the php package leroy-merlin-br/laravel-optimizely. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leroy-merlin-br/laravel-optimizely
More information about leroy-merlin-br/laravel-optimizely
Files in leroy-merlin-br/laravel-optimizely
Package laravel-optimizely
Short Description A Laravel wrapper for the Optimizely SDK
License MIT
Informations about the package laravel-optimizely
Laravel Optimizely
A Laravel wrapper for the Optimizely SDK
Installation
Add the package to your project:
composer require leroy-merlin-br/laravel-optimizely
Publish the configs: `php artisan vendor:publish
Set the environment variables in your .env:
-
OPTIMIZELY_DISK
: Where the Datafile is going to be stored (we recommend in-memory storage like Redis) -
OPTIMIZELY_DATAFILE_FILEPATH
: The path where the Datafile is going to be stored, if you're using a key/value storage, this would be the key. OPTIMIZELY_WEBHOOK_SECRET
: The secret token that Optimizely generates for your webhook, this is used to validate incoming request and asure that it is secure, the request is going to fail otherwise
Webhook
When you publish our package using vendor:publish
a route will be created with the URI webhooks/optimizely
, Optimizely will use this route to send Datafile updates, you'll have to create a Webhook in Optimizely settings and copy the secret token to the environment
Usage
To further usage guides, go to Optimizely's PHP SDK Doc
Contributing
Just fork it :)
License
All versions of laravel-optimizely with dependencies
ext-json Version *
illuminate/config Version ^5.7.0 || ^6.0 || ^7.0|| ^8.0
illuminate/support Version ^5.7.0 || ^6.0 || ^7.0|| ^8.0
optimizely/optimizely-sdk Version ^3.9