floodgate/floodgate-cakephp

Floodgate plugin for CakePHP

Installs: 322

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:cakephp-plugin

0.0.3 2019-11-12 23:31 UTC

This package is auto-updated.

Last update: 2024-04-13 09:33:26 UTC


README

CakePHP plugin for Floodgate, a cloud based feature flag service which provides a centralised management console for managing your application feature flags.

Installing & Configuring

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');

Usage

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
}

About Floodgate

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 hello@floodgate.io. To get started with feature flags for free at https://app.floodgate.io/signup.

Floodgate has currently developed following SDKs.