Download the PHP package qandidate/toggle-bundle without Composer
On this page you can find all versions of the php package qandidate/toggle-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download qandidate/toggle-bundle
More information about qandidate/toggle-bundle
Files in qandidate/toggle-bundle
Package toggle-bundle
Short Description This Bundle provides the integration with qandidate/toggle. It provides the services and configuration you need to implement feature toggles in your Symfony application.
License MIT
Informations about the package toggle-bundle
Qandidate Toggle Symfony Bundle
This Bundle provides the integration with our toggle library. It provides the services and configuration you need to implement feature toggles in your application.
About
Read the 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
Using Symfony Flex
The easiest way to install and configure the QandidateToggleBundle with Symfony is by using Symfony Flex.
Make sure you have Symfony Flex installed:
Install the bundle:
Symfony Flex will automatically register and configure the bundle.
Manually
Add the bundle to your composer.json
Add the bundle to your Kernel:
Configuration
Sample Configuration for Symfony
Example usage
Usage can vary on your application. This example uses the supplied
UserContextFactory
, but you probably need to create your own factory.
You can find a working example using the Symfony MicroKernelTrait in the Resources/doc/example directory.
Annotation Usage
You can also use the @Toggle
annotation on a controller. When the toggle isn't active a 404 exception is thrown.
Twig usage
If you use Twig you can also use the function:
Or the Twig test:
Both are registered in the ToggleTwigExtension.
Data collector
With the data collector you have a overview about all toggles. In the toolbar you see all conditions and the current status.
In the panel you have two lists:
- You can see all keys and there current values.
- Then you can see all configured toggles, there conditions and if they are active.
Testing
To run PHPUnit tests:
License
MIT, see LICENSE.
All versions of toggle-bundle with dependencies
qandidate/toggle Version ^2.0
symfony/framework-bundle Version ^4.4||^5.0
symfony/http-foundation Version ^4.4.7||^5.0.7
symfony/http-kernel Version ^4.4.13||^5.1.5
symfony/security-bundle Version ^4.4||^5.0
doctrine/common Version ^2.13||^3.0
doctrine/annotations Version ^1.13