Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Feature Flags Laravel Package

ylsideas/feature-flags

An extendable Laravel package for managing feature flags in code, routes, Blade views, task scheduling, and validations—making continuous integration and deployment easier by safely guarding features behind toggles.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Deploy vs. release separation: Lets the team merge and deploy incomplete or risky work behind flags, then enable it independently for internal users, beta cohorts, or all customers. This supports trunk-based development, smaller PRs, and lower release coordination overhead.
  • Progressive rollout and risk containment: Use flags as kill switches for new checkout flows, migrations, integrations, or UI changes. If a release misbehaves, disable the feature without a rollback deploy.
  • Roadmap and prioritization flexibility: Ship dark launches and staged betas earlier, gather feedback, and decide whether to invest further before committing to full rollout. Useful for “bet” features that need validation before sales or marketing exposure.
  • Cohort and entitlement gating: Combined with Laravel’s Gate driver, flags can support internal-only features, beta programs, plan-based entitlements, or customer-specific capabilities. This package provides access checks; it is not a full experimentation or segmentation platform.
  • Operational controls beyond product features: The package can gate routes via middleware, Blade sections, scheduled tasks, validation rules, and even Eloquent query behavior. It also supports maintenance-mode-style operational toggles, which helps incident response and planned operational changes.
  • Build vs. buy decisions: For a Laravel monolith with modest flag needs, this is a low-cost, code-first “assemble” option: MIT licensed, Laravel-native integrations, multiple gateways (config, database, Redis, Gate, in-memory, chain), caching, and testing fakes. It avoids SaaS per-seat or usage-based flag pricing but shifts operational ownership to engineering.
  • Architecture decisions around flag storage: The chain/gateway model forces an explicit decision about source of truth: config for static/local flags, database or Redis for runtime toggles, Gate for user/cohort access, and in-memory for tests/local development. That is useful for standardizing flag behavior across environments.
  • Flag lifecycle governance: Because there is no built-in dashboard, adoption implies a process decision: naming conventions, ownership, expiry, cleanup cadence, and who can toggle production flags. The package provides commands and expiry handlers, but not approval workflows or audit UI.

When to Consider This Package

  • Consider it when you have a Laravel 9–13 application and want feature flags evaluated server-side in Laravel code, routes, Blade templates, scheduled jobs, validation, or query builder logic.
  • Good fit when the team is comfortable with a code-first/config-first workflow, can own flag definitions and cleanup, and does not need a non-technical admin dashboard on day one.
  • Good fit for a small to mid-sized product team that wants a lightweight, MIT-licensed package with low integration cost and is willing to treat flag infrastructure as an internal engineering capability.
  • Good fit when flags are primarily binary on/off or access-gated by Laravel Gate logic, and when beta cohorts can be expressed through existing authorization rules rather than a sophisticated targeting engine.
  • Consider it for release safety, dark launches, internal betas, migration cutovers, kill switches, and route/task-level operational toggles.
  • Look elsewhere if you need a hosted flag dashboard, non-engineer toggling, audit logs, approvals, RBAC, percentage rollouts, experimentation statistics, client-side/mobile SDKs, edge evaluation, or vendor SLA support.
  • Be cautious if the organization requires multi-language/microservice flag evaluation, centralized flag governance across many teams, or a mature vendor ecosystem. The package has active releases and a changelog, but it is a single-maintainer project with zero listed dependents, so ecosystem adoption and long-term support risk should be explicitly accepted.
  • Do not adopt it if the need is really just static environment configuration. If flags will rarely change at runtime and no one needs toggling, the package adds process overhead without much benefit.
  • The advertised Flagfox dashboard is separate and was positioned via a waitlist; do not assume this package includes a production-ready admin UI. If a dashboard is a near-term requirement, evaluate whether the separate product is available and supported before committing.

How to Pitch It (Stakeholders)

  • Executive summary: This is a low-cost, Laravel-native way to reduce release risk and increase deployment frequency by separating “deploy” from “launch.” It gives us kill switches and staged rollouts without buying a SaaS flag platform immediately. The trade-off is that it is code-first, has no built-in admin dashboard, and depends on a small maintainer, so we should pilot it with clear ownership and flag-cleanup discipline.
  • For engineering: It integrates with Laravel middleware, Blade, scheduling, validation, the query builder, and testing fakes, and supports multiple gateways with caching and chain behavior. That means we can standardize flag checks without building a custom abstraction from scratch. We still need conventions for naming, storage choice, expiry, and production toggling.
  • For product and operations: It enables internal betas, dark launches, customer-specific access, and incident kill switches. It does not replace an experimentation platform or a non-technical flag console. Product managers should not expect to toggle flags in a UI unless we build or buy that layer separately.
  • Recommended ask: Run a 4–6 week pilot on one or two non-critical features with clear success metrics: deployment frequency, change failure rate, MTTR, number of flags cleaned up after launch, and incidents caused by flag misconfiguration. If the pilot succeeds, standardize the package; if dashboard, audit, or targeting needs dominate, evaluate a buy option such as LaunchDarkly, Unleash, Flagsmith, ConfigCat, GrowthBook, or Split.
  • Risk framing: The package is MIT licensed, documented, changelogged, and actively released, which lowers initial cost and integration risk. The main risks are operational maturity and bus factor: no built-in UI, limited ecosystem adoption signals, and reliance on internal discipline. Treat it as a scoped engineering capability, not a company-wide feature-management platform, until proven.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style