PHPackages                             m1guelpf/laravel-feature - 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. m1guelpf/laravel-feature

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

m1guelpf/laravel-feature
========================

Disable and enable features in your application using Laravel Feature.

v1.6(7y ago)7336[1 PRs](https://github.com/m1guelpf/laravel-feature/pulls)MITPHPPHP ^7.1

Since Feb 4Pushed 6y agoCompare

[ Source](https://github.com/m1guelpf/laravel-feature)[ Packagist](https://packagist.org/packages/m1guelpf/laravel-feature)[ Docs](https://github.com/m1guelpf/laravel-feature)[ RSS](/packages/m1guelpf-laravel-feature/feed)WikiDiscussions master Synced yesterday

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

Feature toggling for Laravel
============================

[](#feature-toggling-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6aa5f7680f3820dc32ec87b5dec47e8146768d4e6f52a4c084ebbc9b95be0e67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d316775656c70662f6c61726176656c2d666561747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m1guelpf/laravel-feature)[![Build Status](https://camo.githubusercontent.com/b6ee214f4579ea89971433083d36f960b70085b1a6be8e08ec3096dbc39257a6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d316775656c70662f6c61726176656c2d666561747572652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/m1guelpf/laravel-feature)[![Quality Score](https://camo.githubusercontent.com/9eed3beb130d3d4ba8d1372e7c07570dd78de832e34905eb918ef6ded6d3ec31/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d316775656c70662f6c61726176656c2d666561747572652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/m1guelpf/laravel-feature)[![Total Downloads](https://camo.githubusercontent.com/98865cd4c3334c45dda7747f11e2aeada874892cccc0e87d685f3b54a4ae4472/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d316775656c70662f6c61726176656c2d666561747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/m1guelpf/laravel-feature)

Disable and enable features in your application using Laravel Feature.

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

[](#installation)

You can install the package via composer:

```
composer require m1guelpf/laravel-feature
```

The package will automatically register itself.

Then, you'll need to publish the config file with:

```
php artisan vendor:publish --provider="M1guelpf\Feature\FeatureServiceProvider"
```

Usage
-----

[](#usage)

You can check if a feature is enabled both by using the helper or the Facade:

```
Feature::enabled('a-feature'); //true
feature('a-feature'); //true
```

You can also define feature routes:

```
Route::get('whatever', 'SomeController@index')->name('whatever')->feature('a-feature');
```

Or use features on Blade:

```
@feature('a-feature')
    Some feature related-text
@endfeature
```

### Testing

[](#testing)

```
composer test
```

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)

- [Miguel Piedrafita](https://github.com/m1guelpf)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~35 days

Recently: every ~106 days

Total

13

Last Release

2639d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23558090?v=4)[Miguel Piedrafita](/maintainers/m1guelpf)[@m1guelpf](https://github.com/m1guelpf)

---

Top Contributors

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

---

Tags

m1guelpflaravel-feature

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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