dipswitch / openfeature-provider
Server-side OpenFeature provider for Dipswitch boolean flags over OFREP.
Package info
github.com/kolesrdjanov/dipswitch-openfeature-php
pkg:composer/dipswitch/openfeature-provider
Requires
- php: ^8.2
- ext-curl: *
- open-feature/sdk: ^2.4.0
Requires (Dev)
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This Composer library evaluates boolean flags on the Dipswitch edge using a server SDK key. It requires PHP 8.2+ in the PHP 8 series, ext-curl and the OpenFeature PHP SDK. The PHP quickstart covers installation and a complete application.
Use an HTTPS edge URL outside localhost. The provider warns when a remote endpoint uses plain HTTP.
A check waits up to three seconds, including connection setup. An unavailable edge, an unknown flag or an unsupported type returns the caller's default with OpenFeature error details. After a rate-limit response the provider honors the edge's retry delay for its lifetime.
The provider reuses its HTTP connection across evaluations. Connection failures, server errors, and refused credentials suspend further calls for five seconds. HTTP 429 honors Retry-After up to five minutes. Run the package tests with composer install and composer test.