C
openai-php/client★ 5,834 · PHP
Community PHP SDK for OpenAI API calls, structured responses, and SSE streaming
MIT · Commercial Friendlyv0.22.0
Side-by-side 2026 comparison in LLMs & Inference: openai/openai-node leads both total GitHub adoption (★ 11.3k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
Community PHP SDK for OpenAI API calls, structured responses, and SSE streaming
Generated TypeScript SDK for integrating the hosted OpenAI API
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | openai-php/client | openai/openai-node |
|---|---|---|
| Total GitHub Stars | ★ 5,834 | ★ 11,295 |
| 24h / 7d Velocity | +0 / +1 | +1 / +14 |
| 7-Day Trend Curve | ||
| Engineering Health | A+ · 95/100 | A+ · 98/100 |
| Deployment Signals | API | API |
| Primary Language | PHP | TypeScript |
| Commercial License | MIT · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 6d ago | Updated yesterday |
| Latest Release | v0.22.0 | v7.69.0 |
| Best For | PHP 8.2+ backends that need structured OpenAI Responses, streaming output, or remote conversation state with minimal custom transport code | TypeScript or JavaScript teams integrating the hosted OpenAI API into a backend that needs typed Responses calls, streaming, uploads, webhook verification, or workload identity |
composer require openai-php/client
client.responses.create() as the primary model interaction path.previous_response_id handles simple continuation; toResponseInputItems() prepares ordered output items for manual replay.toStreamingFile() can send Node, web, or cloud-storage streams without the buffering performed by toFile().npm install openaiSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy