Download the PHP package devcycle/php-server-sdk without Composer
On this page you can find all versions of the php package devcycle/php-server-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devcycle/php-server-sdk
More information about devcycle/php-server-sdk
Files in devcycle/php-server-sdk
Package php-server-sdk
Short Description DevCycle PHP Server SDK
License MIT
Homepage https://devcycle.com
Informations about the package php-server-sdk
DevCycle PHP Server SDK
Welcome to the DevCycle PHP SDK, initially generated via the DevCycle Bucketing API.
Requirements
PHP 8.0 and later.
Installation
Composer Installation
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Getting Started
Please follow the installation procedure and then run the following:
Usage
To find usage documentation, visit our docs.
OpenFeature Support
This SDK provides an implementation of the OpenFeature Provider interface. Use the getOpenFeatureProvider()
method on the DevCycle SDK client to obtain a provider for OpenFeature.
Advanced Options (Local Bucketing)
Because of the nature of PHP - we can't directly support local bucketing within PHP - but we have created a supporting worker that can be used to emulate the local bucketing function of low latency and high throughput. This proxy can be found here: https://github.com/devcyclehq/local-bucketing-proxy
The proxy has two modes - HTTP, and Unix sockets. The PHP SDK supports both modes, but the HTTP mode should be used for most cases.
The configuration for this proxy (in HTTP mode) is as follows (replacing the URL with the URL of the proxy):
The configuration for this proxy (in Unix socket mode) is as follows (replacing the UDS path with the path to the socket):
All versions of php-server-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^2.0
open-feature/sdk Version ^2.0