#7272nd of 118 in Agent frameworks and SDKs
client
PHP client library for the OpenAI API, with typed responses and streaming
- Stars
- 5.8k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- PHP
5,727 on 21 Apr 20265,836 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Community-maintained PHP client for the OpenAI API, installed with Composer and requiring PHP 8.2+. It covers Responses, Conversations, Chat, Audio, Embeddings, Files, Images, Vector Stores, Batches and Fine-tuning, plus newer Agents, Skills and Containers resources. A factory sets base URI, organization, project, headers and a custom PSR-18 HTTP client, and an Azure service is listed.
Who it is for: PHP and Laravel developers calling the OpenAI API from their apps
Strengths
- Covers Responses, Conversations, Containers, Skills, Agents, Vaults, Batches and Realtime ephemeral keys
- Streaming supported via createStreamed and retrieveStreamed methods
- Factory accepts custom base URI, headers, query params and any PSR-18 HTTP client
- Response objects expose typed properties and a toArray() method
Weaknesses
- Targets the OpenAI API; other providers only via a custom base URI or the Azure service
- Requires PHP 8.2+ and a PSR-18 HTTP client such as Guzzle
- Hosted shell and containers run on OpenAI; local command execution is left to your app
- Several resources (Assistants, Threads, FineTunes, Edits, Completions) are deprecated or legacy
What it needs
- no GPU
- Needs PHP 8.2+, Composer, PSR-18 HTTP client (e.g. guzzlehttp/guzzle), OpenAI API key
- Models: OpenAI API models
Quick answers
Is client open source?
Yes. Its code is on GitHub under the MIT license.
Does client need a GPU?
No, it runs without one.
Also in Agent frameworks and SDKs
See all 118| Rank | Project | Score |
|---|---|---|
| 1 | ppt-masterAgent skill that turns documents into natively editable PowerPoint decks | 95 out of 100 |
| 2 | openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing | 91 out of 100 |
| 3 | mastraTypeScript framework for building AI agents, workflows and MCP servers | 91 out of 100 |
| #4 | browser-usePython library that lets an LLM agent control a web browser | 90 out of 100 |
| #5 | copilotkitSDK for adding agent chat, generative UI and shared state to apps | 90 out of 100 |