Weave Code
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

Pennant Laravel Package

laravel/pennant

Laravel Pennant is a simple, lightweight feature flag library for Laravel. Define and evaluate feature toggles, control rollouts, and experiment safely across environments. Official docs available at laravel.com/docs/pennant.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Flagging Strategy: Enables gradual rollouts, A/B testing, and canary releases without redeploying code. Aligns with continuous delivery and experimentation-driven development roadmaps.
  • Build vs. Buy: Avoids reinventing feature flag infrastructure (e.g., LaunchDarkly, Flagsmith) while maintaining control over data and costs. Ideal for teams already using Laravel.
  • Use Cases:
    • Dark Launching: Ship new features to a subset of users (e.g., 20% of users in region X).
    • Kill Switches: Disable problematic features remotely (e.g., new_payment_flow).
    • Multi-Tenant Isolation: Toggle features per tenant (e.g., tenant_123:enable_new_ui).
    • Analytics/Experiments: Power user segmentation (e.g., feature_x:enabled_for_premium_users).
  • Roadmap Enablers:
    • Progressive Rollouts: Reduce risk by controlling exposure via scopes (e.g., user_id, device_type).
    • Compliance: Audit feature usage via events (e.g., FeatureUpdated).
    • Performance: Optimized for high-traffic apps (e.g., bulk updates, cache invalidation).

When to Consider This Package

Adopt if:

  • Your stack is Laravel-based (PHP 8.1+) and you need lightweight, self-hosted feature flags.
  • You require fine-grained control over flag evaluation (e.g., per-user, per-tenant, or dynamic rules).
  • Your team prefers open-source over SaaS (avoids vendor lock-in, data egress costs).
  • You need integration with Laravel’s ecosystem (e.g., Blade directives @feature, middleware, events).
  • Your use case involves complex scoping (e.g., feature:enabled_for_users_with_tier >= 'premium').

Look elsewhere if:

  • You need real-time flag updates (Pennant relies on cache invalidation; consider a SaaS like LaunchDarkly).
  • Your team lacks PHP/Laravel expertise (setup requires Laravel knowledge).
  • You need advanced analytics (e.g., multivariate testing) beyond basic flag toggles.
  • Your app is multi-language (Pennant is PHP-first; consider a polyglot solution).
  • You require enterprise-grade support/SLA (MIT license = community-driven).

How to Pitch It (Stakeholders)

For Executives: "Laravel Pennant lets us ship faster and safer by controlling feature visibility without redeploying code. It’s like a ‘light switch’ for our product—turn features on/off for specific users, test new flows with minimal risk, and kill problematic releases instantly. Since it’s open-source and self-hosted, we avoid vendor lock-in and data privacy concerns. For example, we could roll out our new checkout flow to 10% of users in EMEA first, then expand based on metrics—all while keeping costs low. It’s a no-code toggle for our engineers to manage experiments and dark launches."

For Engineering: *"Pennant is a batteries-included feature flag solution for Laravel that handles:

  • Scopes: Toggle flags per user, tenant, or custom logic (e.g., feature:enabled_for_users_with_balance > 1000).
  • Performance: Optimized for bulk operations and cache efficiency (critical for high-traffic apps).
  • Integration: Works with Blade (@feature), middleware, and events—no reinventing the wheel.
  • Extensibility: Supports custom drivers (e.g., Redis, DynamoDB) and hooks for advanced use cases. It’s actively maintained (Laravel team-backed), lightweight (~50KB), and avoids the latency of SaaS flag services. Tradeoff: We’ll need to manage the infrastructure, but the payoff is full control and zero vendor dependency."*

For Data/Analytics: "Pennant’s event system (e.g., FeatureUpdated) lets us track flag changes for auditing and analytics. While it doesn’t replace tools like Mixpanel, it enables us to gate experiments (e.g., ‘only show this ad to users with flag X’) and later analyze results in our BI tools. For A/B tests, we’d pair it with our existing analytics stack to measure impact."

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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle