qandidate / toggle
Feature toggling for your PHP application.
Installs: 1 685 785
Dependents: 11
Suggesters: 1
Security: 0
Stars: 381
Watchers: 23
Forks: 37
Open Issues: 4
Requires
- php: >=7.2
Requires (Dev)
- broadway/coding-standard: ^1.2
- phpstan/phpstan: @stable
- phpunit/phpunit: ^9.5
- predis/predis: ^1.1||^2.0
- symfony/expression-language: ^3.4||^4.4||^5.0
Suggests
- predis/predis: To use the PredisCollection to persist toggles in redis
- symfony/expression-language: To use the ExpressionCondition to add conditions as a symfony language expression
- dev-master
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- dev-dependabot/composer/phpunit/phpunit-tw-11.4
- dev-dependabot/github_actions/peter-evans/create-pull-request-7
- dev-dependabot/composer/symfony/expression-language-tw-7.1.4
- dev-dependabot/composer/phpunit/phpunit-tw-11.3
- dev-modernize
This package is auto-updated.
Last update: 2024-10-07 03:39:27 UTC
README
Feature toggling for PHP.
About
Read our blog post series about this repository at:
- http://labs.qandidate.com/blog/2014/08/18/a-new-feature-toggling-library-for-php/
- http://labs.qandidate.com/blog/2014/08/19/open-sourcing-our-feature-toggle-api-and-ui/
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.