Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.83 KB

File metadata and controls

48 lines (33 loc) · 1.83 KB

OpenFeature Flagd Bundle

CI Latest Version PHP Version Symfony Version

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.