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.
20% of users in region X).new_payment_flow).tenant_123:enable_new_ui).feature_x:enabled_for_premium_users).user_id, device_type).FeatureUpdated).Adopt if:
@feature, middleware, events).feature:enabled_for_users_with_tier >= 'premium').Look elsewhere if:
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:
feature:enabled_for_users_with_balance > 1000).@feature), middleware, and events—no reinventing the wheel.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."
How can I help you explore Laravel packages today?