PHPackages                             rikudou/unleash-sdk-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rikudou/unleash-sdk-bundle

Abandoned → [unleash/symfony-client-bundle](/?search=unleash%2Fsymfony-client-bundle)Symfony-bundle

rikudou/unleash-sdk-bundle
==========================

v0.12.285(3mo ago)382111[2 issues](https://github.com/Unleash/unleash-client-symfony/issues)MITPHPPHP ^8.5CI passing

Since Aug 27Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Unleash/unleash-client-symfony)[ Packagist](https://packagist.org/packages/rikudou/unleash-sdk-bundle)[ RSS](/packages/rikudou-unleash-sdk-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (119)Used By (0)

[![Download](https://camo.githubusercontent.com/171034d4e2faca62bda3320935009e945118115cbf431ff3c9717e05796dd060/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e6c656173682f73796d666f6e792d636c69656e742d62756e646c652e737667)](https://packagist.org/packages/unleash/symfony-client-bundle)

A Symfony bundle for PHP implementation of the [Unleash protocol](https://www.getunleash.io/)aka [Feature Flags](https://docs.gitlab.com/ee/operations/feature_flags.html) in GitLab.

View the standalone PHP version at [Packagist](https://packagist.org/packages/unleash/client)or [GitHub](https://github.com/Unleash/unleash-client-php).

> Unleash allows you to gradually release your app's feature before doing a full release based on multiple strategies like releasing to only specific users or releasing to a percentage of your user base. Read more in the above linked documentations.

Requires php 7.3 or newer.

> For generic description of the methods read the [standalone package](https://github.com/Unleash/unleash-client-php)documentation, this README will focus on Symfony specific things

Installation
------------

[](#installation)

`composer require unleash/symfony-client-bundle`

> If you use [flex](https://packagist.org/packages/symfony/flex) the bundle should be enabled automatically, otherwise add `Unleash\Client\Bundle\UnleashSymfonyClientBundle` to your `config/bundles.php`

Basic usage
-----------

[](#basic-usage)

First configure the basic parameters, either using a DSN or as separate parameters:

```
unleash_client:
  dsn: http://localhost:4242/api?instance_id=myCoolApp-Server1&app_name=myCoolApp
```

or

```
unleash_client:
  app_url: http://localhost:4242/api
  instance_id: myCoolApp-Server1
  app_name: myCoolApp
```

> Tip: Generate the default config by running `php bin/console config:dump unleash_client > config/packages/unleash_client.yaml`which will create the default config file which you can then tweak

```
