ylsideas/feature-flags
Extendable Laravel feature flags (toggles) to safely gate code and support continuous delivery. Use flags across your app, including routes, Blade views, task scheduling, and validation—built for flexibility and easy integration.
Strengths:
feature:state command, fake flags for testing) simplifies troubleshooting and development.update_on_resolve config) minimizes database/cache hits for frequently accessed flags.Limitations:
Features::accessible('flag-name') syntax integrates seamlessly with existing Laravel codebases.FeatureFlagsMiddleware) and route filtering (Features::routeIsAccessible()) enable granular control over feature visibility.database, cache, in_memory). Teams using Laravel’s default database or Redis for caching can leverage existing infrastructure.whenFeatureIsAccessible()) enable dynamic data filtering without application-layer logic, reducing complexity.update_on_resolve could lead to stale flag states in distributed environments.in_memory driver is fastest but volatile; database/cache drivers add persistence at the cost of latency.update_on_resolve to balance performance and consistency.Features::fake().feature:state calls).in_memory driver (for development) or database driver (for production).if (config('features.new_ui')) with if (Features::accessible('new-ui')).FeatureFlagsMiddleware for route-level control.whenFeatureIsAccessible() in Eloquent queries to filter data dynamically.Features::scheduleIsAccessible() for task scheduling.FeatureFlagRule).Features::fake() in tests to isolate feature behavior.in_memory driver.Features::accessible().How can I help you explore Laravel packages today?