Skip to content
Source
Sign inSign up
TanStack/ai

examples/ag-ui/servers/php

Contents of examples/ag-ui/servers/php
NameLast commit messageLast commit date
..
lib (directory)
README.md
router.php

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_KEY
  • ANTHROPIC_API_KEY

Endpoints

MethodPathDescription
POST/AG-UI chat (SSE)
GET/healthHealth check (ok)
OPTIONS/CORS preflight

The client sends forwardedProps: { provider, model } in the AG-UI RunAgentInput body.