Download the PHP package dorumd/feature-switches without Composer
On this page you can find all versions of the php package dorumd/feature-switches. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package feature-switches
Feature Switches
This library provides the most basic implementation of so called feature switches(aka feature toggles/feature flags).
Setup:
Install the library
Configure your feature switches(example):
Basic usage:
Supported feature switches:
-
Basic(default type)
Basic feature switch solely relies on enabled flag. Configuration reference:
-
Percentage split
Percentage split feature switch can be used for the gradual rollout, or A/B tests. Configuration reference:
Note: The accuracy of its percentage split is limited by randomness of php
rand(1, 100)
. With smaller samples(N < 1000), higher deviation is expected. - More to come soon...
Storage
This library comes with 3 storage mechanisms embedded:
-
file(yaml format)
-
in memory
- composite: use case - file storage for defaults and database storage in admin which overrides it
Development:
Dependencies: Docker
To fix code formatting errors:
All versions of feature-switches with dependencies
symfony/yaml Version ^5.1
symfony/config Version ^5.1
webmozart/assert Version ^1.9