{"id":36991430,"url":"https://github.com/bestit/flagception-bundle","last_synced_at":"2026-01-13T23:42:57.923Z","repository":{"id":22504313,"uuid":"96459299","full_name":"bestit/flagception-bundle","owner":"bestit","description":"Feature flags on steroids!","archived":true,"fork":false,"pushed_at":"2023-08-01T08:18:50.000Z","size":708,"stargazers_count":212,"open_issues_count":21,"forks_count":43,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-05T16:05:18.121Z","etag":null,"topics":["bundle","constraints","feature","feature-flags","feature-toggles","rollout","symfony","toggle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-06T18:15:29.000Z","updated_at":"2025-04-08T09:11:20.000Z","dependencies_parsed_at":"2023-01-13T22:02:22.414Z","dependency_job_id":null,"html_url":"https://github.com/bestit/flagception-bundle","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/bestit/flagception-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestit%2Fflagception-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestit%2Fflagception-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestit%2Fflagception-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestit%2Fflagception-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestit","download_url":"https://codeload.github.com/bestit/flagception-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestit%2Fflagception-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","constraints","feature","feature-flags","feature-toggles","rollout","symfony","toggle"],"created_at":"2026-01-13T23:42:57.848Z","updated_at":"2026-01-13T23:42:57.912Z","avatar_url":"https://github.com/bestit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flagception\n**Feature toggle bundle on steroids!** Flagception is a simple and powerful feature toggle system for php.\nThis bundle integrates the [Flagception PHP Libary](https://packagist.org/packages/flagception/flagception) for symfony 2.7 to 5.* (and php 5.6 to php7.*).\n\n[![Latest Stable Version](https://poser.pugx.org/flagception/flagception-bundle/v/stable)](https://packagist.org/packages/flagception/flagception-bundle)\n[![Coverage Status](https://coveralls.io/repos/github/bestit/flagception-bundle/badge.svg?branch=master)](https://coveralls.io/github/bestit/flagception-bundle?branch=master)\n[![Build Status](https://travis-ci.org/bestit/flagception-bundle.svg?branch=master)](https://travis-ci.org/bestit/flagception-bundle)\n[![Total Downloads](https://poser.pugx.org/flagception/flagception-bundle/downloads)](https://packagist.org/packages/flagception/flagception-bundle)\n[![License](https://poser.pugx.org/flagception/flagception-bundle/license)](https://packagist.org/packages/flagception/flagception-bundle)\n\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/4423478b-f6db-4f77-bb36-0782bcdf82c0/small.png)](https://insight.sensiolabs.com/projects/4423478b-f6db-4f77-bb36-0782bcdf82c0)\n\n| Bundle Version (Tag) | Support Symfony | Branch |\n|----------------------|-----------------|--------|\n| \u003c=3                  | 2.7 - 4.4       | 3.x    |\n| \u003e=4                  | 4.4 - current   | master |\n\n```console\n$ composer require flagception/flagception-bundle\n```\n\nDocumentation\n---------------------------\n* [Installation](docs/install.md)\n* [Upgrade from 2.x](UPGRADE-3.0.md)\n* [Upgrade from 3.x](UPGRADE-4.0.md)\n* [Usage](docs/usage.md)\n* [Twig flags](docs/twig.md)\n* [Route flags](docs/route.md)\n* [Annotation flags](docs/annotation.md)\n* [Constraints](docs/constraint.md)\n* [Environment variables](docs/environment.md)\n* [Cookies](docs/cookie.md)\n* [Database](docs/database.md)\n* [Activators](docs/activator.md)\n* [Profiler](docs/profiler.md)\n\nQuick example\n---------------------------\nSet some feature in your config (or use your own [activator](docs/activator.md) for fetching features from wherever you want) ...\n\n```yml\nflagception:\n\n    # Your Features (optional you left it empty)\n    features:\n    \n        # Feature name as key\n        feature_123:\n            # Default flag if inactive or active (default: false)\n            default: true\n            \n        # Feature state from an environment variable\n        feature_abc:\n            env: FEATURE_ENV_ABC\n            \n        # Feature with constraint (active if user id is 12 OR it is between 8 am and 6 pm)\n        feature_def:\n            constraint: 'user_id == 12 or (date(\"H\") \u003e 8 and date(\"H\") \u003c 18)'\n                    \n        # All togther (chain)\n        feature_def:\n            default: false\n            env: FEATURE_ENV_ABC\n            constraint: 'user_id == 12 or (date(\"H\") \u003e 8 and date(\"H\") \u003c 18)'\n```\n\n... and use it in controller, services or twig:\n\n```twig\n{% if feature('feature_123') %}\n    {# Execute if feature is active ... #}\n{% endif %}\n```\n\nSee [usage documentation](docs/usage.md) for detailed examples.\n\nProfiler\n---------------------------\nThis bundle ships a profiler tab, where you can see how often a feature was requested, which results it returns (active or inactive) and \nthe given context.\n\n![Image of Profiler](docs/images/profiler.png)\n\nCredits\n-------------------------\nProfiler icon from https://github.com/ionic-team/ionicons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestit%2Fflagception-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestit%2Fflagception-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestit%2Fflagception-bundle/lists"}