PHP code example of cafemedia / feature
1. Go to this page and download the library: Download cafemedia/feature library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cafemedia / feature example snippets
$config = [
'testFeature' => [
'description' => 'this is the description of the test feature',
'enabled' => [
'variant1' => 100, //100% chance this variable will be chosen
'variant2' => 0
],
]
];
$feature = (new Feature($config))->addUser([
'user-uaid' => 'unique identifier', //