This package is abandoned and no longer maintained. No replacement package was suggested.

Zend Framework Bandiera integration

dev-master 2019-10-03 01:32 UTC

This package is not auto-updated.

Last update: 2022-02-18 11:41:05 UTC


This integrates bandiera for using feature flags in your applications.

This module relies on the bandiera PHP client.

Build status MIT licensed Total Downloads


Installation is done via composer.

composer require springernature/bandiera-zf

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

return [
    'modules' => [
        // ...
        // ...
    // ...

Copy the sample config file springernature_bandiera.config.php to your project.


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

<?php if ($this->featureFlags('feature', ['param' => 'foo'])) : ?>
<?php endif; ?>


  1. Fork this repo.
  2. Run composer install
  3. Run the tests composer run-script tests


© 2019 Springer Nature.

Bandiera Zend Framework Integration is licensed under the MIT License.