em411/feature-flag-bundle
A Symfony bundle for feature flags: enable or disable code paths based on context-aware callables. This is a Symfony 4.4 / PHP 7.4 backport of ajgarlag/feature-flag-bundle, keeping the same API and namespace for a drop-in upgrade from the upstream package.
actions/checkout v4 → v6 and actions/cache v4 → v5 to run on
Node.js 24. GitHub deprecated Node.js 20 for Actions; the older versions
emitted deprecation warnings on every run and will stop working in
September 2026. No effect on the published package.config.audit.block-insecure: false —
Symfony 4.4 is EOL upstream and users on this backport already accept the
EOL security posture. Advisories are still reported on install, just not
blocking.twig/twig 3.26.0 was released with a PHP 8.1+ requirement, breaking the
PHP 8.0 leg of the matrix. Capped the require-dev constraint to
^2.12 | >=3.0,<3.7 so CI picks a version compatible with both PHP 7.4 and
PHP 8.0. End users are unaffected (Twig is not in require).First Packagist release. Pre-launch polish on top of 1.0.2.
CHANGELOG.md.ajgarlag/feature-flag-bundle.Ajgarlag\FeatureFlagBundle\ despite the em411/* package name.Antonio J. García Lagar copyright line in LICENSE; explicit em411 maintainer entry.composer.json authors now lists upstream maintainer ajgarlag and the backport maintainer em411 with role annotations.FeatureFlagPass: it no longer references the misnamed ajgarlag.feature_flag.provider.in_memory service (the service id is a leftover from upstream; it is actually backed by ServiceProvider).composer.json minimum-stability: dev → stable (no dev deps required it).profiler_dump (PR #3).Bundle::getPath() so the profiler template resolves correctly when the bundle is consumed via Composer (PR #2).Initial release of the Symfony 4.4 / PHP 7.4 backport of
ajgarlag/feature-flag-bundle.
FeatureChecker / FeatureCheckerInterface services for checking whether a feature is enabled.ProviderInterface with built-in ChainProvider and ServiceProvider. Any service implementing ProviderInterface is autoconfigured as a provider.[@AsFeature](https://github.com/AsFeature) Doctrine annotation for declaring features on classes and methods (PHP 7.4 has no native attributes).feature_is_enabled() and feature_get_value().ajgarlag/feature-flag-bundle)[@AsFeature](https://github.com/AsFeature) Doctrine annotation instead of the #[AsFeature] PHP 8 attribute. A single annotation per class or method is supported; use the ajgarlag.feature_flag.feature service tag to declare more than one feature on the same class.condition expressions. Use controller-level gating (see README).Ajgarlag\FeatureFlagBundle\ so code written against the upstream package works here unchanged.How can I help you explore Laravel packages today?