Download the PHP package rasuvaeff/yii3-feature-flags without Composer

On this page you can find all versions of the php package rasuvaeff/yii3-feature-flags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii3-feature-flags

rasuvaeff/yii3-feature-flags

Stable Version Total Downloads Build Static Analysis Psalm Level PHP Русская версия

Feature flags, kill switches and percentage rollout for Yii3 applications.

Stateless core — storage backends are separate packages. Deterministic rollout via SHA-256 hash. Works with Yii3 config-plugin or standalone.

Using an AI coding assistant? llms.txt has a compact API reference you can give to the LLM to help it work with this package. Projects using the llm/skills Composer plugin also get this package's agent skill synced into .agents/skills/ automatically on install.

Requirements

Installation

Usage

Basic flag check

Configuration

In your application config (config/params.php):

Configuration options

Key Type Default Description
enabled bool true Master switch for the flag
salt string flag name Hash salt for deterministic rollout
rollout int 100 Percentage of subjects to include (0..100)
killSwitch bool false Immediately disable the flag, overrides all rules
environments list<string> [] Restrict to specific environments (empty = all)

FlagContext

Forced values

Use forced values for QA/debug overrides on existing flags:

A forced value never re-enables a flag that has its kill switch active — the kill switch wins.

Strict mode

Unknown flags return false by default. Enable strict mode to throw instead:

Evaluation result

Get detailed information about why a flag is enabled or disabled:

EvaluationReason carries a single machine-readable reason instead of a set of overlapping booleans:

Case enabled When
Enabled true Flag on, no targeting/rollout exclusion
Disabled false enabled: false on the flag
KillSwitch false killSwitch: true overrides everything
RolloutExcluded false Subject outside the rollout bucket
EnvironmentExcluded false Context environment not in the flag's allowlist
Forced caller-set FlagContext::withForcedFlag() overrode the result
Unknown false Flag not registered (non-strict mode)

bash composer require rasuvaeff/yii3-feature-flags-db bash make install # composer install make build # full gate: validate + cs + psalm + test make cs-fix # fix code style make psalm # static analysis make test # run tests make test-coverage # run coverage make mutation # mutation testing make release-check # build + rector + bc-check + mutation



`make test-coverage` and `make mutation` bootstrap `pcov` inside the
`composer:2` container because the base image has no coverage driver.

## License

BSD-3-Clause. See [LICENSE.md](LICENSE.md).

All versions of yii3-feature-flags with dependencies

PHP Build Version
Package Version
Requires php Version 8.3 - 8.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rasuvaeff/yii3-feature-flags contains the following files

Loading the files please wait ...