#9999th of 242 in Agent frameworks and SDKs
open-ai
PHP client for the OpenAI REST API with streaming support
Watch puts open-ai on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.open-ai is on your watch list. Its new releases and problems show there.
- Stars
- 2.4k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- PHP
2,342 on 27 Apr 20262,358 on 23 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A community-maintained PHP library that wraps the OpenAI REST API: chat completions, Responses, images, embeddings, audio, files, fine-tuning, vector stores and batches. It needs PHP 7.4+ with cURL and JSON, and has no third-party runtime dependencies. A generic request() method covers endpoints without dedicated methods, and the base URL can be changed for OpenAI-compatible providers.
Who it is for: PHP developers calling OpenAI or compatible APIs from their apps
Strengths
- No third-party runtime dependencies; only PHP cURL and JSON extensions
- Generic request() reaches Containers, Evals and admin endpoints without dedicated methods
- setBaseURL() and setApiVersion() allow OpenAI-compatible providers such as ByteDance Ark
- Streaming callbacks receive raw SSE chunks for Chat and Responses
Weaknesses
- Methods return raw JSON strings by default; callers must json_decode themselves
- HTTP 4xx/5xx errors do not throw unless setThrowOnError(true) is enabled
- No WebSocket support; a separate client is needed for that
- tts() and translate() wrap endpoints whose documented models are deprecated or limited
What it needs
- no GPU
- Needs PHP 7.4+, cURL extension, JSON extension, OpenAI API key
- Models: OpenAI API models, OpenAI-compatible APIs
What changed
- 6.3.1 ↗ (opens in a new tab)Security fix
CVE-2026-109618, CVE-2026-109619. “Documentation: add a notice for the PHP runtime security advisory of 21 Oct 2026 (CVE-2026-109618, CVE-2026-109619). These are PHP engine vulnerabilities; no library code changes are required. Update…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Agent frameworks and SDKs
See all 242| Rank | Project | Score |
|---|---|---|
| #97 | adk-javaJava library for building and orchestrating LLM agents in code | 70 out of 100 |
| #98 | skill-recorderElectron app that turns a screen recording into an agent skill | 69 out of 100 |
| #100 | bubPython agent kernel and app with plugins, skills, and channel integrations | 69 out of 100 |
| #101 | brainlid/langchainElixir library for calling LLMs, tools and chains from Elixir apps | 69 out of 100 |
| #102 | agent-governance-toolkitPolicy enforcement, identity and audit for AI agent tool calls | 68 out of 100 |