PHPackages                             bestit/laravel-flagception - 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. bestit/laravel-flagception

ActiveLibrary

bestit/laravel-flagception
==========================

Laravel driver for the bestit/flagception-sdk

19PHP

Since Jun 29Pushed 7y ago3 watchersCompare

[ Source](https://github.com/bestit/laravel-flagception)[ Packagist](https://packagist.org/packages/bestit/laravel-flagception)[ RSS](/packages/bestit-laravel-flagception/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-flagception
===================

[](#laravel-flagception)

Feature toggle for laravel. Laravel provider for the flagception/flagception-sdk.

Installation and setup
----------------------

[](#installation-and-setup)

Install it via composer:

```
composer require bestit/laravel-flagception
```

The package will automatically register itself.

If you are using Laravel 5.5 or higher this package will be auto-discovered. For earlier versions you have to register the service provider in your app.php:

```
// config/app.php

'providers' => [
    // ...
    BestIt\LaravelFlagception\FlagceptionServiceProvider::class,
];
```

The core of this package is the config. To publish it run:

```
php artisan vendor:publish --provider="BestIt\LaravelFlagception\FlagceptionServiceProvider"
```

Basic usage
-----------

[](#basic-usage)

Define a feature in your config file:

```
// config/flagception.php

return [
    //...
    'features' => [
        'feature_123' => [
            'active' => false,
        ],
    ],
];
```

Inject the FeatureManager where you need it:

```
class WelcomeController extends Controller
{
    public function index(FeatureManager $featureManager)
    {
        if ($featureManager->isActive('feature_123')) {
            //do something
        }
        //...
    }
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/acc5af332f2a79dedb5aea83c3b4c2665d99fd2c14743fd0c2a3d70ecf0b7859?d=identicon)[best-it](/maintainers/best-it)

---

Top Contributors

[![avareldev](https://avatars.githubusercontent.com/u/6123267?v=4)](https://github.com/avareldev "avareldev (1 commits)")

### Embed Badge

![Health badge](/badges/bestit-laravel-flagception/health.svg)

```
[![Health](https://phpackages.com/badges/bestit-laravel-flagception/health.svg)](https://phpackages.com/packages/bestit-laravel-flagception)
```

PHPackages © 2026

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