PHP code example of kukulili-labs / feature-toggle-bundle
1. Go to this page and download the library: Download kukulili-labs/feature-toggle-bundle 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/ */
kukulili-labs / feature-toggle-bundle example snippets
if ($this->get('kukulili_labs_feature_toggle.feature_toggles')->isEnabled('feature_toggles_name')) {...}
$this->get('kukulili_labs_feature_toggle.feature_toggles')->disableForSession('feature_toggles_name');
$this->get('kukulili_labs_feature_toggle.feature_toggles')->enableForSession('feature_toggles_name');
php
new KukuliliLabs\FeatureToggleBundle\KukuliliLabsFeatureToggleBundle(),