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

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

aaronsaray/laravel-simple-feature
=================================

Simple feature flag for laravel

3.0.0(7y ago)3107[3 PRs](https://github.com/aaronsaray/laravel-simple-feature/pulls)MITPHP

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aaronsaray/laravel-simple-feature)[ Packagist](https://packagist.org/packages/aaronsaray/laravel-simple-feature)[ RSS](/packages/aaronsaray-laravel-simple-feature/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

Laravel Simple Feature Flag
===========================

[](#laravel-simple-feature-flag)

This is a simple feature flag system for Laravel. There are many better, more complex flag systems available. The point of this one is to simply create a light-weight feature flag system that is configured through a facade/helper/service using the config and environment system. Simple!

Installation Instructions
-------------------------

[](#installation-instructions)

Install via composer in your project. It is recommended to install it into dev.

`composer require aaronsaray/laravel-simple-feature`

If you're using Laravel 5.5 and above, the service provider will be automatically registered. If not, you'll need to register `AaronSaray\LaravelSimpleFeature\Providers\LaravelSimpleFeatureProvider`. In addition, you'd need to register the `Feature` facade.

Publish the config files.

`php artisan vendor:publish --tag=config`

You can modify the `config/laravel-simple-feature.php` file for your desired feature flags.

Usage
-----

[](#usage)

To use, you can use the following method to get a boolean:

`AaronSaray\LaravelSimpleFeature\Facades\Feature::can('your-feature')`

You can also use `on` and `off`.

You can also inject the service `AaronSaray\LaravelSimpleFeature\Services\LaravelSimpleFeatureService` if you like.

Finally, you can use a Blade directive as an `if` statement.

```
@feature('some-feature')
    This is when the feature is on!
@else
    This is if the feature is off.
@endfeature

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

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

Total

4

Last Release

2639d ago

Major Versions

1.0.0 → 2.0.02018-12-06

2.0.1 → 3.0.02019-02-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a9ad2a426eb84bbb6d5fd7f8a9000797796581c2aeda0d27b39391e55c0e7a3?d=identicon)[aaronsaray](/maintainers/aaronsaray)

---

Top Contributors

[![aaronsaray](https://avatars.githubusercontent.com/u/956888?v=4)](https://github.com/aaronsaray "aaronsaray (8 commits)")

### Embed Badge

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

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

###  Alternatives

[ccinn/husky-php

Similar to js-husky client git hook implementation

6827.0k1](/packages/ccinn-husky-php)[keios/moneyright

Precise, GAAP-compliant, database-friendly Money Value Object

2055.5k1](/packages/keios-moneyright)[lloricode/laravel-html-table

Html table generator for laravel

1561.9k1](/packages/lloricode-laravel-html-table)[lingxi/hashids

A Hashids bridge for Laravel

183.3k](/packages/lingxi-hashids)

PHPackages © 2026

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