pandarose / ollama-stream
Stream a real-time response from a local Ollama model
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/pandarose/ollama-stream
Requires
- amphp/amp: ^3.1
- amphp/http-client: ^5.3
- revolt/event-loop: ^1.0
This package is not auto-updated.
Last update: 2025-12-25 19:39:54 UTC
README
A PHP client for the Ollama API, allowing for streaming responses from the API.
Features
- Supports streaming and non-streaming responses
- Calls a callback function for each word received from the API
Example Usage
See the example.php file for a basic usage example.
Requirements
- PHP 8.1+
- Amp HTTP Client library (
amp/http-client)