ylsideas/feature-flags
Larablocks Analysis
ylsideas/feature-flags works with Laravel 11, 12 and 13 (latest release v3.1.0, May 11, 2026).
Laravel 5 to 10 in earlier releases.
Recommendation checks
RecommendedRecommended by Larablocks: meets all 4 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (May 11, 2026)
- 26,210 downloads a month (at least 10,000)
- 626 GitHub stars (at least 100)
State
Maintained- Last stable release: May 11, 2026.
- 1 release in the last 12 months.
- First released: Jul 15, 2019.
- Monthly downloads: 26,210, about the same as six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require ylsideas/feature-flags |
|
| Latest Version: | v3.1.0 |
| PHP: | ^8.3 |
| Laravel: | 11 · 12 · 13 |
| Older releases: | 5 – 10 |
| License: | MIT |
| Last Updated: | May 12, 2026 |
| Links: | GitHub · Packagist |

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 safeguarding 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.
The Feature flagging dashboard for Laravel
In late 2022 we decided to start work on a dashboard that will work on top of all the awesomeness that Feature flags for Laravel gives you. Right now you can join the waiting list.
How adding feature flags looks with this package
It's pretty simple, you can start of with just simple calls to check if a flag's state is on or off.
Features::accessible('my-feature') // returns true or false
One of the unique features of this package is that it integrates heavily into Laravel by allowing you to configure different things such as access to route, schedule tasks or modifying the query builder.
To get a full understanding, it's best to read the docs.
Upgrading
Version 3 and 2 are mostly the same. Some additonal type hinting was adding but not no major upgrade work should be required.
Version 2 and is somewhat different to version 1. If you are using Laravel 9 and PHP8 you should aim to use version 2. Version 1 is no longer supported. There is an upgrade guide for moving from version 1 to version 2.
Installation
You can install the package via composer:
composer require ylsideas/feature-flags:^3.0
Once installed you should publish the config with the following command.
php artisan vendor:publish --provider="YlsIdeas\FeatureFlags\FeatureFlagsServiceProvider" --tag=config
You can customise the features.php config in a number of ways.
Documentation
For the complete documentation, visit https://feature-flags.docs.ylsideas.co/.
Package Development
If you wish to develop new features for this package you may run the tests using the following command.
composer test
Make sure any code you work on is linted as well.
composer lint
and that the code doesn't introduce errors with PHPStan.
composer analyse
Please make sure you follow the Pull Request template for all proposed changes. Ignoring it will mean the PR will be ignored.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email peter.fox@ylsideas.co instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
A Laravel package for adding unsubscribe links to notifications
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v3.1.0 | ^8.3 | 13.*| | MIT | |
| v3.0.2 | ^8.2 | 12.*| | MIT | |
| v3.0.1 | ^8.2 | 12.*| | MIT | |
| v3.0.0 | ^8.2 | 12.*| | MIT | |
| v2.6.0 | ^8.2 | 11.*| | MIT | |
| v2.5.0 | ^8.2 | 11.*| | MIT | |
| v2.4.2 | ^8.1 | 10.*| | MIT | |
| v2.4.1 | ^8.0 | 10.*| | MIT | |
| v2.4.0 | ^8.0 | 10.*| | MIT | |
| v2.3.1 | ^8.0 | 10.*| | MIT | |
| v2.3.0 | ^8.0 | 10.*| | MIT | |
| v2.2.0 | ^8.0 | 9.* | MIT | |
| v2.1.1 | ^8.0 | 9.* | MIT | |
| v2.1.0 | ^8.0 | 9.* | MIT | |
| v2.0.3 | ^8.0 | 9.* | MIT | |
| v2.0.2 | ^8.0 | 9.* | MIT | |
| v2.0.1 | ^8.0 | 9.* | MIT | |
| v2.0.0 | ^8.0 | 9.* | MIT | |
| 1.5.0 | ^7.3| | 9.*| | MIT | |
| v1.4.2 | ^7.3| | ^8.0| | MIT | |
| v1.4.1 | ^7.3| | ^8.0| | MIT | |
| v1.4.0 | ^7.3| | ^8.0| | MIT | |
| v1.3.1 | ^7.2.5 | ^8.0| | MIT | |
| v1.2.1 | ^7.2 | 6.*| | MIT | |
| v1.2.0 | ^7.2 | 6.*| | MIT | |
| v1.1.0 | ^7.2 | 6.*| | MIT | |
| v1.0.1 | ^7.2 | 6.*| | MIT | |
| v1.0.0 | ^7.2 | 5.8.* | MIT |
