← all repositories

qiayue/php-openai-gpt-stream-chat-api-webui

A PHP web interface for streaming ChatGPT conversations.

434 stars PHP Chat Assistants
php-openai-gpt-stream-chat-api-webui
Velocity · 7d
+0.4
★ / day
Trend
steady
star history

This project provides a pure PHP implementation (no frameworks) for connecting to OpenAI’s GPT API with streaming response support. It includes a minimal web-based chat UI that handles real-time token streaming from the model, displays markdown-rendered responses with syntax highlighting, and performs sensitive-word filtering on user input. The backend consists of PHP classes that manage API communication and stream handling, while the frontend uses vanilla HTML/CSS/JS for the chat interface.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.