Hosmel Quintana
Introduction
Installation
Basic usage
Streaming Requests
Reading Events
Handling Errors
Advanced usage
Timeouts
Testing
Compatibility
View on GitHub

Installation

Install SSE Saloon Plugin with Composer. It requires PHP 8.4 or later and Saloon 4.

Requirements

SSE Saloon Plugin requires PHP 8.4 or later and Saloon 4 with its Guzzle sender, the one Saloon uses by default.

Install the package

Install the package with Composer:

bash
composer require hosmelq/sse-saloon

Composer also installs PHP SSE, which parses the events.

Next steps

Add the trait to a streaming request.

IntroductionStreaming Requests