laravel/pennant
Laravel Pennant is a simple, lightweight feature flag library for Laravel. Define and evaluate feature flags to safely roll out, test, and target functionality in your app. Official docs available on the Laravel website.
user_id, role).new_payment_flow in staging).dark_mode_v2 vs. dark_mode_v1).old_checkout) with a sunset timeline./admin) via middleware integration.FeatureUpdated) or custom metrics.Adopt Pennant if:
@feature('new_ui'), middleware, Blade directives).Look elsewhere if:
For Executives: "Pennant lets us ship faster and safer by controlling feature visibility with a flip of a switch—no code deployments needed. For example, we can test the new subscription flow with 5% of users before rolling it out globally. It’s lightweight, integrates natively with Laravel, and reduces risk by letting us toggle features on/off in real-time. The cost? Zero—it’s open-source and maintained by the Laravel team. ROI? Fewer bugs in production, quicker iterations, and data-driven decisions on what sticks with users."
For Engineers: *"Pennant gives us a Laravel-native, scalable way to manage feature flags with:
@feature('flag') in Blade, feature()->bool('flag') in code, or middleware like EnsureFeaturesAreActive.Feature::update([...])) and cache-friendly.feature()->bool('pro_features', user: auth()->user())), events, and custom drivers.For Designers/Product Managers: *"With Pennant, we can:
How can I help you explore Laravel packages today?