PHPackages                             springernature/bandiera-zf - 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. [Framework](/categories/framework)
4. /
5. springernature/bandiera-zf

AbandonedArchivedModule[Framework](/categories/framework)

springernature/bandiera-zf
==========================

Zend Framework Bandiera integration

00PHP

Since Oct 3Pushed 6y ago27 watchersCompare

[ Source](https://github.com/springernature/bandiera-zf)[ Packagist](https://packagist.org/packages/springernature/bandiera-zf)[ RSS](/packages/springernature-bandiera-zf/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Bandiera Zend Framework Integration
===================================

[](#bandiera-zend-framework-integration)

This integrates [bandiera](https://github.com/springernature/bandiera) for using feature flags in your applications.

This module relies on the [bandiera PHP client](https://github.com/springernature/bandiera-client-php).

[![Build status](https://camo.githubusercontent.com/5215afe5fc996b6f211fe27a9df1e658da9fea897cab3afa4290253cad9c422d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737072696e6765726e61747572652f62616e64696572612d7a662f6d61737465722e737667)](https://travis-ci.org/springernature/bandiera-zf)[![MIT licensed](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/cc38311dfca63077e7961d10d5365f5340d54d14fb6eccd1d45af1581bb1eb4c/68747470733a2f2f706f7365722e707567782e6f72672f737072696e6765726e61747572652f62616e64696572612d7a662f646f776e6c6f616473)](https://packagist.org/packages/springernature/bandiera-zf)

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

[](#installation)

Installation is done via [composer](https://getcomposer.org/).

`composer require springernature/bandiera-zf`

Enable the module by adding the module to your `application.config.php`:

```
return [
    'modules' => [
        // ...
        'SpringerNature\Zend\Bandiera',
        // ...
    ],
    // ...
```

Copy the sample config file [`springernature_bandiera.config.php`](config/springernature_bandiera.config.php) to your project.

Usage
-----

[](#usage)

This module register into the service container a default client called `springernature.bandiera.client`.

```
public function myService(Client $bandiera)
{
    if ($bandiera->isEnabled('my_app', 'feature') {
        // Do something
    }
}
```

This module also expose a `featureFlags` view helper. In a template the view helper can be used as following

```
