examples/ag-ui/servers/php
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
PHP AG-UI server#
Hand-rolled AG-UI SSE server on http://127.0.0.1:8003.
Run#
From examples/ag-ui:
pnpm dev:php
Requires PHP 8.2+ with the curl extension enabled.
Environment#
OPENAI_API_KEYANTHROPIC_API_KEY
Endpoints#
| Method | Path | Description |
|---|---|---|
| POST | / | AG-UI chat (SSE) |
| GET | /health | Health check (ok) |
| OPTIONS | / | CORS preflight |
The client sends forwardedProps: { provider, model } in the AG-UI RunAgentInput body.