qandidate/toggle

Feature toggling for your PHP application.

Installs: 1 894 031

Dependents: 11

Suggesters: 1

Security: 0

Stars: 381

Watchers: 22

Forks: 37

Open Issues: 4

pkg:composer/qandidate/toggle

2.0.2 2022-07-29 14:13 UTC

README

Feature toggling for PHP.

build status

About

Read our blog post series about this repository at:

Installation

Add the library to your project:

$ composer require qandidate/toggle ^1.0

How to use

In the examples folder you'll see the basic usage of the Toggle library.

Basically you create a collection with features, optionally with conditions. Based on a given Context, the manager will tell you if a feature is active or not.

Tests

To run all the tests you'll need to have redis installed (redis tests wil be skipped when not available).

Running the tests:

$ make test

License

MIT, see LICENSE.