Documentation
  • Introduction
  • Getting Started
    • Quick Start
    • Medium Start
    • Long Start
  • Developpers
    • SDKs
      • JavaScript (web)
      • Node.js
      • React
      • PHP
      • Go
      • Python
    • Customization
      • Backend environment variables
      • Frontend environment variables
  • Community
    • Github
    • Contribution
Powered by GitBook
On this page
  • Installation
  • Usage
  1. Developpers
  2. SDKs

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.

PreviousReactNextGo

Last updated 2 years ago