# OpenAI PHP

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.

Repository: https://github.com/openai-php/client
Canonical: https://ross.abutalabs.com/products/openai-php
Language: PHP
License: MIT
License Family: permissive
Topics: api, client, codex, gpt-3, language, natural, openai, php, processing, sdk, gpt-4, gpt-5
Last push: 2026-08-18T10:19:11+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 93, longevity 100
- inputs: {"age_days": 1438, "days_push": 15, "days_rel": 44, "gap_med": 29.5, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5829, forks 679 (observed 2026-08-28T04:09:30.155371+00:00)

## What it is
OpenAI PHP is a community-maintained PHP SDK for interacting with the OpenAI API, covering chat, responses, embeddings, audio, images, fine-tuning, vector stores, and more. It also ships a Laravel-specific package (openai-php/laravel) with framework integration.

## Use cases
- call the openai api from php
- generate chat completions with gpt-4 in a laravel app
- create embeddings for semantic search in php
- transcribe audio with whisper from php
- generate images with dall-e via php
- fine-tune openai models programmatically

## When to choose
- your backend is PHP or Laravel and you need typed access to the OpenAI API
- you want a community-maintained, MIT-licensed client covering the full OpenAI API surface
- you need Laravel service-container integration and facades

## When to avoid
- you use another language or framework with an official SDK
- you need multi-provider LLM abstraction rather than OpenAI specifically
- you require vendor-official support guarantees

## Facets
- artifact type: library
- maturity: active
- function: http-client, sdk, llm-inference, chatbot, rag
- domain: large-language-models, artificial-intelligence, apis, web-development
- platform: php, cross-platform
- tags: openai-api, gpt, api-client, community-maintained, embeddings, fine-tuning, laravel

## Member repositories
- openai-php/client (main) score 97
- openai-php/laravel (plugin) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:30.155371+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:52:04.818357+00:00, confidence not recorded.
  - readme: https://github.com/openai-php/client (fetched 2026-08-28T04:09:30.155371+00:00, sha f9ef4db9b3d3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
