PHP code example of mrferos / mrf-swivel
1. Go to this page and download the library: Download mrferos/mrf-swivel 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/ */
mrferos / mrf-swivel example snippets
$swivel = $serviceLocator->get('MrfSwivel\Swivel');
$swivelConfig = $serviceLocator->get('MrfSwivel\SwivelConfig');
$swivelConfig->setBucketIndex(3); // Can be from session/cookie/etc!
bash
cp vendor/mrferos/MrfSwivel/config/swivel.config.php.dist config/autoload/swivel.config.php