craftquest / craft-feature-flags
Runtime feature flags for Craft CMS with targeting rules, percentage rollouts, and audit logging.
Package info
github.com/CraftQuest/craft-feature-flags
Type:craft-plugin
pkg:composer/craftquest/craft-feature-flags
Requires
- php: >=8.2
- craftcms/cms: ^5.3.0
- craftcms/plugin-installer: ^1.0
Requires (Dev)
- phpunit/phpunit: ^10.5
Suggests
- craftcms/commerce: Required for subscriptionPlan targeting rule type
This package is auto-updated.
Last update: 2026-05-16 18:48:58 UTC
README
Runtime feature flags for Craft CMS with targeting rules, percentage rollouts, and audit logging.
Requirements
- Craft CMS 5.3.0 or later
- PHP 8.2 or later
Installation
You can install this plugin from the Craft Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your Craft control panel, search for "Feature Flags", and click Install.
With Composer
Run the following commands from your project directory for DDEV:
ddev composer require craftquest/craft-feature-flags ddev craft plugin/install feature-flags
composer require craftquest/craft-feature-flags php craft plugin/install feature-flags
Usage
{% if craft.featureFlags.isEnabled('new-checkout') %}
{# Show the redesigned checkout flow #}
{% include '_checkout/new' %}
{% endif %}
use craftquest\featureflags\FeatureFlags; if (FeatureFlags::getInstance()->evaluationService->isEnabled('new-checkout')) { // Feature is enabled for the current user }
Documentation
Full documentation is available at craftquest.io/plugins/feature-flags.