LaunchDarkly PHP SDK 6.1.0

EventPublisher

Interface for the component that sends events to the LaunchDarkly service.

Application code should not need to implement this interface. LaunchDarkly provides two implementations:

Table of Contents

__construct()  : mixed
publish()  : bool
Publishes events to LaunchDarkly.

Methods

__construct()

public __construct(string $sdkKey, array<string|int, mixed> $options) : mixed
Parameters
$sdkKey : string

The SDK key for your account

$options : array<string|int, mixed>

Client configuration settings

Return values
mixed

publish()

Publishes events to LaunchDarkly.

public publish(string $payload) : bool
Parameters
$payload : string

Event payload

Return values
bool

Whether the events were successfully published

Search results