aubes / openfeature-flagd-bundle
Symfony bundle for the OpenFeature Flagd provider
Package info
github.com/aubes/openfeature-flagd-bundle
Type:symfony-bundle
pkg:composer/aubes/openfeature-flagd-bundle
v0.1.0
2026-04-12 11:24 UTC
Requires
- php: >=8.2
- open-feature/flagd-provider: ^1.1
- symfony/config: ^6.4|^7.4|^8.0
- symfony/dependency-injection: ^6.4|^7.4|^8.0
- symfony/http-kernel: ^6.4|^7.4|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.0|^12.0
- rector/rector: ^2.4
- symfony/framework-bundle: ^6.4|^7.4|^8.0
Suggests
- nyholm/psr7: Required for PSR-17 RequestFactory and StreamFactory implementations
- symfony/http-client: Required for the PSR-18 HTTP client (psr18.http_client service)
README
Symfony bundle that registers the OpenFeature Flagd provider as a Symfony service.
Flagd in Symfony, one composer require away.
Requirements
- PHP 8.2+
- Symfony 6.4, 7.4 or 8.x
- A PSR-18 HTTP client (e.g.
symfony/http-client,guzzlehttp/guzzle) and PSR-17 factories (e.g.nyholm/psr7)
Installation
composer require aubes/openfeature-flagd-bundle symfony/http-client nyholm/psr7
Note: Without a Symfony Flex recipe, register the bundle manually in
config/bundles.php:Aubes\OpenFeatureFlagdBundle\OpenFeatureFlagdBundle::class => ['all' => true],
Configuration
# config/packages/open_feature_flagd.yaml open_feature_flagd: host: '%env(FLAGD_HOST)%' # default: localhost port: 8013 # default: 8013 protocol: http # default: http (http or grpc) secure: false # default: false
The bundle registers a FlagdProvider service in the Symfony container with the configured connection parameters and PSR-18/PSR-17 services.
Running flagd
See the flagd quick start for installation and configuration.
License
MIT. See LICENSE.