PHP code example of worksome / feature-flags
1. Go to this page and download the library: Download worksome/feature-flags 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/ */
worksome / feature-flags example snippets
namespace App\Enums;
enum FeatureFlag: string implements \Worksome\FeatureFlags\Contracts\FeatureFlagEnum
{
case FlagOne = 'flag-one';
}
@feature(\App\Enums\FeatureFlag::FlagOne)
This is content under a feature flag.
@endfeature
bash
php artisan vendor:publish --tag="feature-flags-config"