PHPackages                             mwkcoding/laravel-feature-flags - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mwkcoding/laravel-feature-flags

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mwkcoding/laravel-feature-flags
===============================

A simple Laravel package to get feature flags in your project.

0.1.1(3y ago)183[2 issues](https://github.com/mwkcoding/feature-flags/issues)MITPHPPHP ^8.0CI failing

Since Sep 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mwkcoding/feature-flags)[ Packagist](https://packagist.org/packages/mwkcoding/laravel-feature-flags)[ Docs](https://github.com/mwkcoding/feature-flags)[ RSS](/packages/mwkcoding-laravel-feature-flags/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel Feature Flags 🚀
=======================

[](#laravel-feature-flags-)

[![GitHub Actions](https://github.com/mwkcoding/feature-flags/actions/workflows/main.yml/badge.svg)](https://github.com/mwkcoding/feature-flags/actions/workflows/main.yml/badge.svg)[![GitHub commits since latest release (by SemVer)](https://camo.githubusercontent.com/ed17e2fb99caec3369cedd5b6f33c5840662f951b81b7fd1b372137ecda312b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f6d776b636f64696e672f666561747572652d666c6167732f6c61746573742f6d61737465723f736f72743d73656d766572267374796c653d666c6174)](https://camo.githubusercontent.com/ed17e2fb99caec3369cedd5b6f33c5840662f951b81b7fd1b372137ecda312b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f6d776b636f64696e672f666561747572652d666c6167732f6c61746573742f6d61737465723f736f72743d73656d766572267374796c653d666c6174)[![Latest Version on Packagist](https://camo.githubusercontent.com/f137d4e5b4767224ef927dfecdbf363a66b182ab9ff7d70a945f6caa9a0194d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d776b636f64696e672f6c61726176656c2d666561747572652d666c6167732e7376673f7374796c653d666c6174)](https://packagist.org/packages/mwkcoding/laravel-feature-flags)[![Total Downloads](https://camo.githubusercontent.com/1c4dbb7b7bfddcbe46e72cba7c8c328bea7b83aab320830c9893865a798313aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d776b636f64696e672f6c61726176656c2d666561747572652d666c6167732e7376673f7374796c653d666c6174)](https://packagist.org/packages/mwkcoding/laravel-feature-flags)[![Packagist PHP Version Support](https://camo.githubusercontent.com/00796810f44b13a473fcdf5ac337c461f269682ca9325f2f79e0622221f9c4fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d776b636f64696e672f6c61726176656c2d666561747572652d666c616773)](https://camo.githubusercontent.com/00796810f44b13a473fcdf5ac337c461f269682ca9325f2f79e0622221f9c4fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d776b636f64696e672f6c61726176656c2d666561747572652d666c616773)[![codecov](https://camo.githubusercontent.com/21bc0bcd3c9071069fc5224dbefea4d07a3da474b6e46eb49048e4a239abfe93/68747470733a2f2f636f6465636f762e696f2f67682f6d776b636f64696e672f666561747572652d666c6167732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d5936494e425a48454f5a)](https://codecov.io/gh/mwkcoding/feature-flags)

A Feature flag is at times referred to as a feature toggle or feature switch. Ultimately it's a coding strategy to be used along with source control to make it easier to continuously integrate and deploy. The idea of the flags works by essentially safe guarding sections of code from executing if a feature flag isn't in a switched on state.

This package aims to make implementing such flags across your application a great deal easier by providing solutions that work with not only your code but your routes, blade files, task scheduling and validations.

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

[](#installation)

You can install the package via composer:

```
composer require mwkcoding/feature-flags
```

Publish the config:

```
php artisan vendor:publish --provider="Mwk\FeatureFlags\FeatureFlagsServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

### In your controllers, jobs, etc.

[](#in-your-controllers-jobs-etc)

```
// Check if a feature is enabled in your backend logic
use Mwk\FeatureFlags\FeatureManagerFacade;

if (FeatureManagerFacade::feature('my-feature')->enabled()) {
    // Your feature specific logic
}
```

### Blade views

[](#blade-views)

```
@feature('my-feature')
    Feature turned on
@endfeature
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mikkel Köhler](https://github.com/mwkcoding)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Every ~345 days

Total

2

Last Release

1452d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16936030?v=4)[Mikkel](/maintainers/mwkcoding)[@mwkcoding](https://github.com/mwkcoding)

---

Top Contributors

[![mwkcoding](https://avatars.githubusercontent.com/u/16936030?v=4)](https://github.com/mwkcoding "mwkcoding (17 commits)")

---

Tags

laravelfeature-flagsmwkcoding

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mwkcoding-laravel-feature-flags/health.svg)

```
[![Health](https://phpackages.com/badges/mwkcoding-laravel-feature-flags/health.svg)](https://phpackages.com/packages/mwkcoding-laravel-feature-flags)
```

###  Alternatives

[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90157.6k](/packages/emargareten-inertia-modal)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1614.1k4](/packages/masterix21-laravel-licensing)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.8k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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