Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

Chat
in package

Table of Contents

Methods

mock()  : void
real()  : void

Methods

mock()

public static mock(Response $response, array<string, mixed> $user, string $message, string $threadId) : void
Parameters
$response : Response

Calls $response->sse(callable)

$user : array<string, mixed>
$message : string
$threadId : string

real()

public static real(Response $response, array<string, mixed> $user, string $message, string $threadId, string $apiKey) : void
Parameters
$response : Response

Calls $response->sse(callable)

$user : array<string, mixed>
$message : string
$threadId : string
$apiKey : string
On this page