CakePHP plugin for Floodgate, a cloud based feature flag service which provides a centralised management console for managing your application feature flags.
You can install the CakePHP Floodgate Plugin using Composer
composer require floodgate/floodgate-cakephp
Load the plugin into your CakePHP application
bin\cake plugin load FloodgateCake -b
Configure your CakePHP application with your Floodgate SDK Key
// /config/app.php
'Floodgate' => [
'sdkkey' => 'enter-your-sdk-key'
],
Load the Floodgate CakePHP Plugin Component
// Controller/AppController.php
$this->loadComponent('FloodgateCake.FloodgateClient');
Below is an example of a simple implementation of getting a single flag value from inside a controller.
// /src/Controller/MyController.php
$result = $this->FloodgateClient->GetValue('feature-flag-key', false);
if ($result) {
// Do something new and exciting
}
else {
// Do whatever I usually do
}
Floodgate is a remote feature management system designed to help engineering teams and product teams work independently. Using feature flags managed by Floodgate you will dramatically reduce the risks software companies face when releasing and deploying new features.
With Floodgate you can use fine grained user targeting to test out new features in your production environment with minimal impact and risk to your existing systems and customers. Floodgate provides a simple to use percentage rollout facility to allow you to perform canary releases with just a few clicks.
To learn more about Floodgate, visit us at https://floodgate.io or contact [email protected]. To get started with feature flags for free at https://app.floodgate.io/signup.
Floodgate has currently developed following SDKs.