PHP

What else to say? :)

Installation

In your composer.json file, add the following package:

{
  "require": {
    "progressively/sdk-php": "dev-fix-packagist"
  }
}

And finally, run the following inside your terminal:

$ composer install

Usage

Create an SDK instance

$option = array(
    "apiUrl" => "your url server"
);

$sdk = Progressively::create("YOUR_ENVIRONMENT_KEY", $option);

Check the variant of a flag

$sdk->isActivated('theFlagKey');

In the future, this function will change its name to better reflect the way Progressively deals with feature flags.

Last updated