• This repository has been archived on 22/Aug/2023
  • Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Feature flags on steroids!

Flagception

Feature toggle bundle on steroids! Flagception is a simple and powerful feature toggle system for php. This bundle integrates the Flagception PHP Libary for symfony 2.7 to 5.* (and php 5.6 to php7.*).

Latest Stable Version Coverage Status Build Status Total Downloads License

SensioLabsInsight

Bundle Version (Tag) Support Symfony Branch
<=3 2.7 - 4.4 3.x
>=4 4.4 - current master
$ composer require flagception/flagception-bundle

Documentation

Quick example

Set some feature in your config (or use your own activator for fetching features from wherever you want) ...

flagception:

    # Your Features (optional you left it empty)
    features:
    
        # Feature name as key
        feature_123:
            # Default flag if inactive or active (default: false)
            default: true
            
        # Feature state from an environment variable
        feature_abc:
            env: FEATURE_ENV_ABC
            
        # Feature with constraint (active if user id is 12 OR it is between 8 am and 6 pm)
        feature_def:
            constraint: 'user_id == 12 or (date("H") > 8 and date("H") < 18)'
                    
        # All togther (chain)
        feature_def:
            default: false
            env: FEATURE_ENV_ABC
            constraint: 'user_id == 12 or (date("H") > 8 and date("H") < 18)'

... and use it in controller, services or twig:

{% if feature('feature_123') %}
    {# Execute if feature is active ... #}
{% endif %}

See usage documentation for detailed examples.

Profiler

This bundle ships a profiler tab, where you can see how often a feature was requested, which results it returns (active or inactive) and the given context.

Image of Profiler

Credits

Profiler icon from https://github.com/ionic-team/ionicons

More Repositories

1

flagception-sdk

A simple and powerful feature toggle library for php.
PHP
70
star
2

harvest-api

Harvest API written in PHP, optimised for the Laravel framework.
PHP
15
star
3

PHP_CodeSniffer

This package contains a default rule set and custom rules which are used in all best it projects.
PHP
15
star
4

amazon-pay-oxid

Amazon Pay & Login for OXID eShop
PHP
11
star
5

shopwaredrivervalet

PHP
7
star
6

ShopwareMageTasks

Common tasks to deploy a shopware project using MagePHP.
PHP
6
star
7

flagception-database-activator

A database activator for the flagception sdk
PHP
5
star
8

betterpapershift

A small Chrome Extension that improves some stuff in Papershift.
JavaScript
4
star
9

iconly

SVG icon system utilising a custom element
TypeScript
3
star
10

commercetools-odm

Wraps the commercetools/php-sdk with the doctrine common api.
PHP
3
star
11

stylelint-config-bestit-base

JavaScript
2
star
12

license-check

Tool to check licenses of used packages.
PHP
2
star
13

shopware-eslint

JavaScript
2
star
14

commercetools-filter-bundle

Commercetools filter and search implementation
PHP
2
star
15

contentful-symfony-bundle

A simple contentful bundle providing you with an easy setup, easy contentmodels and a simple api providing the contentful contents as an array.
PHP
2
star
16

commercetools-async-pool

Batch-Processing of a pool asynchronous commercetools requests.
PHP
2
star
17

symfony-kitchensink-bundle

Helps you create a kitchensink incl. route, template and services.
PHP
1
star
18

hipchat-api

Generic Hipchat Api basically built for laravel but could be used in plain php aswell.
PHP
1
star
19

flagception-contentful-activator

Contentful extension for the flagception bundle
PHP
1
star
20

commercetools-custom-types-bundle

Bundle to help you with the creation of custom types.
PHP
1
star
21

laravel-flagception

Feature toggle for laravel. Laravel provider for the flagception/flagception-sdk
PHP
1
star
22

symfony-commercetools-customer-prices-bundle

Provides a commercetools substitute with custom objects to get customer individual prices.
PHP
1
star