PHPackages                             tsslabs/toggle-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. tsslabs/toggle-bundle

ActiveSymfony-bundle

tsslabs/toggle-bundle
=====================

0.1.0(11y ago)04501MITPHP

Since Sep 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tsslabs/qandidate-toggle-bundle)[ Packagist](https://packagist.org/packages/tsslabs/toggle-bundle)[ RSS](/packages/tsslabs-toggle-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Qandidate Toggle Symfony Bundle
===============================

[](#qandidate-toggle-symfony-bundle)

This Bundle provides the integration with [our toggle library](https://github.com/qandidate-labs/qandidate-toggle). It provides the services and configuration you need to implement feature toggles in your application.

[![Build Status](https://camo.githubusercontent.com/b103cec1e25b4916533c752d6f52ab6701134b3f899bb5b9f55ba33b5a2e47f3/68747470733a2f2f7472617669732d63692e6f72672f71616e6469646174652d6c6162732f71616e6469646174652d746f67676c652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/qandidate-labs/qandidate-toggle-bundle)

About
-----

[](#about)

Read the our blog post series about this repository at:

-
-

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

[](#installation)

Add the bundle to your composer.json

```
$ composer require qandidate/toggle-bundle ~0.1
```

Add the bundle to your Kernel

```
$bundles = array(
    // ..
    new Qandidate\Bundle\ToggleBundle\QandidateToggleBundle(),
);
```

Configuration
-------------

[](#configuration)

```
qandidate_toggle:
    persistence: in_memory|redis
    context_factory: null|your.context_factory.service.id
    redis_namespace: toggle_%kernel.environment% # default, only required when persistence = redis
    redis_client: null|your.redis_client.service.id # only required when persistence = redis
```

Example usage
-------------

[](#example-usage)

Usage can vary on your application. This example uses the supplied `UserContextFactory`, but you probably need to create your own factory.

```

```

```
// Acme\Controller

public function __construct(
    /* ArticleRepository, Templating, ..*/
    ToggleManager $manager,
    ContextFactory $contextFactory
) {
    // ..
    $this->manager = $manager;
    $this->context = $contextFactory->createContext();
}

// ..

public function articleAction(Request $request)
{
    $this->article = $this->repository->findBySlug($request->request->get('slug'));

    return $this->templating->render('article.html.twig', array(
        'article'        => $article,
        'enableComments' => $this->manager->active('comments', $this->context),
    ));
}
```

Twig usage
----------

[](#twig-usage)

If you use Twig you can also use the Twig function:

```
{% if is_active('comments') %}
    {# Awesome comments #}
{% endif %}
```

License
-------

[](#license)

MIT, see LICENSE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4276d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/647137?v=4)[Radu Topala](/maintainers/radutopala)[@radutopala](https://github.com/radutopala)

---

Top Contributors

[![wjzijderveld](https://avatars.githubusercontent.com/u/450201?v=4)](https://github.com/wjzijderveld "wjzijderveld (4 commits)")[![radutopala](https://avatars.githubusercontent.com/u/647137?v=4)](https://github.com/radutopala "radutopala (3 commits)")[![fritsjanb](https://avatars.githubusercontent.com/u/1194777?v=4)](https://github.com/fritsjanb "fritsjanb (2 commits)")[![marianflorin](https://avatars.githubusercontent.com/u/1611164?v=4)](https://github.com/marianflorin "marianflorin (1 commits)")

### Embed Badge

![Health badge](/badges/tsslabs-toggle-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tsslabs-toggle-bundle/health.svg)](https://phpackages.com/packages/tsslabs-toggle-bundle)
```

###  Alternatives

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[rikudou/psr6-dynamo-db-bundle

PSR-6 and PSR-16 cache implementation using AWS DynamoDB for Symfony

2077.8k](/packages/rikudou-psr6-dynamo-db-bundle)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
