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

Features Bundle Laravel Package

serendipity_hq/features-bundle

Serendipity HQ Features Bundle adds a flexible feature-flag system to PHP applications, letting you enable or disable functionality per environment, user, or context. Define features in configuration, check them anywhere, and ship changes safely without redeploying code.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

First, a flag for the room: this is a Symfony bundle, not a Laravel package. On a Laravel codebase it is a reference implementation and design source, not something you composer require and ship. Everything below assumes that framing.

What it informs:

  • Packaging and tiering. The core of pricing work is a defensible map of capability → plan. A package that models "features" and "plans" as first-class concepts gives you a place to encode that map once and read it everywhere, instead of scattering if ($user->plan === 'pro') across the codebase.
  • Paywall and upgrade-prompt placement. When entitlements are queryable, the blocked action itself can become the upsell surface — "export is a Pro feature" at the moment of intent converts better than a static pricing page nag.
  • Gated rollout and beta cohorts. The same primitive that gates by plan gates by cohort, which means one mechanism covers both monetization and staged release. That reduces the number of bespoke systems the team maintains.
  • Plan migrations and grandfathering. Repricing or restructuring tiers is the highest-risk moment in a subscription business. An explicit feature/plan model lets you answer "what does this specific account get today?" before and after the change, rather than reconstructing intent from billing records.
  • Roadmap sequencing. Which gated features actually get used by which tier is direct evidence for where to invest next and which tier is underpriced.
  • Build vs. buy. It is most valuable as a scope calibration: reading how little is required to model plans and features tells you whether a full entitlements platform is justified yet — usually it isn't at early scale.

When to Consider This Package

Consider it when:

  • Your backend is Symfony/PHP and you want plan-to-feature mapping without adding a SaaS dependency.
  • You are early-stage or low-scale, where a per-MAU feature-flag bill is real money and a simple table plus a service is genuinely sufficient.
  • You need something inspectable and forkable — MIT license, small surface area, no vendor lock-in.
  • You have, or will build, your own admin surface for toggling plans and features. This package is a domain model, not an operations product.
  • You are prototyping a pricing change and want the entitlement logic out of the billing code before you commit to a redesign.

Look elsewhere when:

  • Your stack is Laravel. Adapting Symfony bundle conventions — service container config, bundle registration, its assumptions about the framework's DI — costs more than writing the equivalent: a plans table, a features table, a pivot, and a cached can() check. Laravel Pennant covers flagging; Cashier plus your own entitlement table covers plan gating. Reach for the framework you already run.
  • Non-technical stakeholders need to change packaging themselves. No hosted dashboard, no audit trail, no approval workflow. Product and growth will be filing tickets to engineering for every toggle.
  • The feature gate sits on a revenue-critical path. 11 stars, zero dependents, and a single maintainer is a bus-factor and security-response risk. There is no SLA and no evidence of production hardening at scale. Adopt only with an explicit fork-and-own commitment — pin a commit, vendor it, assign an internal owner.
  • You need experimentation rigor. Flags gate exposure; they do not compute significance, manage sample ratios, or guard against metric peeking. Different problem, different tool.
  • You operate under compliance constraints requiring change history, access controls, and segregation of duties on who can flip a paid feature.

How to Pitch It (Stakeholders)

For executives — one paragraph: There's an open-source component that models the thing we keep rebuilding by hand: which features belong to which plan, and whether a given customer is entitled to a given capability. It's free, permissively licensed, and small. The upside is that it lets us test packaging and pricing changes and run gated betas from one mechanism instead of three. The honest downside is adoption signal: roughly a dozen stars, no downstream dependents, one maintainer. That makes it a strong reference design and a weak production dependency. I'd recommend a short spike against a single non-critical gate, and only proceed if we're prepared to vendor and own the code.

For engineering: Treat this as a schema and domain-model blueprint, not a library. Extract the feature/plan/entitlement concepts, implement them natively in our framework (in Laravel: two tables, a pivot, a cached resolver, and a policy check), and keep the interface narrow enough that we could swap in a hosted provider later without touching call sites. Do not pull in Symfony bundle machinery to a Laravel app. If we do adopt the PHP code, it's a pinned fork with a named maintainer and a written exit path.

Decision requested: approve a time-boxed spike (roughly a few days) to validate the entitlement model against one low-risk gate, with no production commitment.

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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect