Skip to main content

PHP Server SDK Installation

Packagist GitHub

AI-Powered Install

MCP Install

Follow the MCP Getting Started guide to quickly set up the DevCycle MCP server and connect your AI tool.

  • Run this prompt: "Install DevCycle into this app"

📦 Install in Cursor

📦 Install in VS Code

claude mcp add --transport http devcycle https://mcp.devcycle.com/mcp
AI Prompt

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.