Download the PHP package aubes/openfeature-configcat-bundle without Composer
On this page you can find all versions of the php package aubes/openfeature-configcat-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aubes/openfeature-configcat-bundle
More information about aubes/openfeature-configcat-bundle
Files in aubes/openfeature-configcat-bundle
Package openfeature-configcat-bundle
Short Description Symfony bundle for the OpenFeature ConfigCat provider
License MIT
Informations about the package openfeature-configcat-bundle
OpenFeature ConfigCat Bundle
Symfony bundle that registers the OpenFeature ConfigCat provider as a Symfony service.
ConfigCat in Symfony, one composer require away.
Requirements
- PHP 8.2+
- Symfony 6.4, 7.4 or 8.x
- Guzzle ^7.0 (required by
configcat/configcat-clientfor HTTP requests; see "Using without Guzzle" below to switch)
Installation
Note: Without a Symfony Flex recipe, register the bundle manually in
config/bundles.php:
Configuration
Usage
Inject the provider directly
This bundle registers ConfigCatProvider as a Symfony service. You can inject it directly and use the OpenFeature API:
Pair with aubes/openfeature-bundle (optional)
If you want framework-level sugar on top of the OpenFeature SDK (#[FeatureFlag] / #[FeatureGate] attributes, Twig helpers, request-scoped evaluation context, profiler integration), install aubes/openfeature-bundle alongside and point it at this provider:
It's entirely optional: this bundle works fine on its own with the plain OpenFeature SDK.
Using without Guzzle
By default, ConfigCat uses Guzzle for HTTP requests. If you prefer symfony/http-client (or any PSR-18 client), this bundle ships a Psr18FetchClient adapter:
This requires symfony/http-client and a PSR-17 implementation (e.g. nyholm/psr7).
License
MIT. See LICENSE.
All versions of openfeature-configcat-bundle with dependencies
configcat/openfeature-provider Version ^1.0
symfony/config Version ^6.4|^7.4|^8.0
symfony/dependency-injection Version ^6.4|^7.4|^8.0
symfony/http-kernel Version ^6.4|^7.4|^8.0