#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
Stars, last 29 weeks+109
21 Apr 2026: 5,727 stars28 Apr 2026: 5,730 stars5 May 2026: 5,733 stars12 May 2026: 5,738 stars19 May 2026: 5,742 stars26 May 2026: 5,748 stars2 Jun 2026: 5,756 stars9 Jun 2026: 5,760 stars16 Jun 2026: 5,767 stars23 Jun 2026: 5,771 stars30 Jun 2026: 5,780 stars7 Jul 2026: 5,784 stars14 Jul 2026: 5,786 stars21 Jul 2026: 5,790 stars28 Jul 2026: 5,792 stars4 Aug 2026: 5,797 stars11 Aug 2026: 5,802 stars18 Aug 2026: 5,804 stars25 Aug 2026: 5,808 stars1 Sept 2026: 5,812 stars8 Sept 2026: 5,814 stars15 Sept 2026: 5,816 stars22 Sept 2026: 5,822 stars29 Sept 2026: 5,827 stars6 Oct 2026: 5,830 stars13 Oct 2026: 5,832 stars20 Oct 2026: 5,833 stars27 Oct 2026: 5,835 stars3 Nov 2026: 5,835 stars10 Nov 2026: 5,836 stars

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
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)75.9k stars+15,456 (+26%) in 30 daysMIT95 out of 100
2openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.6k stars+689 (+2.3%) in 30 daysMIT91 out of 100
3mastraTypeScript framework for building AI agents, workflows and MCP servers29.5k stars+792 (+2.8%) in 30 dayscustom license91 out of 100
#4browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)120.7k stars+3,290 (+2.8%) in 30 daysMIT90 out of 100
#5copilotkitSDK for adding agent chat, generative UI and shared state to apps38.6k stars+760 (+2.0%) in 30 daysMIT90 out of 100