Skip to main content

PHP Server SDK Installation

Packagist GitHub

Requires PHP 7.3 and later.

Composer Installation

To install the bindings via Composer, add the following to composer.json:

{
"require": {
"devcycle/php-server-sdk": "*"
}
}

Then run composer install

Once the composer install is complete, a vendor folder should be generated at the root of your project. Include this at the start of your app index file:

require_once(__DIR__ . '/vendor/autoload.php');

SDK Proxy

Due to complexities with the PHP application lifecycle and state management, local bucketing functionality requires a different approach compared to the other server SDKS.

To access this functionality in PHP, DevCycle provides a proxy process that can run alongside your PHP application or on a separate host in your environment. This proxy mimics the Cloud Bucketing API but provides for higher speed variable evaluations due to the reduction of network latency and config caching; all powered by DevCycle's high performance Go Server SDK.

See the SDK Proxy section for more information.