# orhanerday/open-ai

OpenAI PHP SDK : Most downloaded, forked, contributed, huge community supported, and used PHP (Laravel , Symfony, Yii, Cake PHP or any PHP framework) SDK for OpenAI GPT-3 and DALL-E. It also supports chatGPT-like streaming. (ChatGPT AI is supported)

Repository: https://github.com/orhanerday/open-ai
Canonical: https://ross.abutalabs.com/products/open-ai
Homepage: https://orhanerday.gitbook.io/openai-php-api-1/
Language: PHP
License: MIT
License Family: permissive
Topics: openai, gpt-3, laravel, php, dall-e, dalle2, openai-api, cakephp, symfony, yii
Last push: 2025-03-12T12:05:15+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 1716, "days_push": 539, "days_rel": 539, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2366, forks 294 (observed 2026-08-28T04:06:41.576865+00:00)

## What it is
A community-maintained PHP SDK for accessing the OpenAI API, supporting GPT-3/GPT-4 chat completions, DALL-E image generation, and ChatGPT-like streaming. It works with any PHP framework including Laravel, Symfony, Yii, and CakePHP.

## Use cases
- call the OpenAI API from PHP
- integrate ChatGPT into a Laravel app
- generate images with DALL-E in PHP
- stream chat completions in PHP
- add AI text generation to a Symfony project
- PHP SDK for GPT-3

## When to choose
- you need OpenAI API access in a PHP 7.4+ project
- you want streaming chat responses in PHP
- you use Laravel, Symfony, Yii, or CakePHP and want a well-supported community SDK

## When to avoid
- you need an official OpenAI SDK with guaranteed long-term support
- your project requires PHP 8.1+ only features or a different API design
- you use a non-PHP stack

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, llm-inference, chatbot
- domain: artificial-intelligence, large-language-models, apis, web-development
- platform: php, cross-platform
- tags: openai, gpt-3, dall-e, chatgpt, laravel, symfony, streaming

## Member repositories
- orhanerday/open-ai (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.576865+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-30T02:35:58.350139+00:00, confidence not recorded.
  - readme: https://github.com/orhanerday/open-ai (fetched 2026-08-28T04:06:41.576865+00:00, sha 83d5449c89c9)
  - homepage: https://orhanerday.gitbook.io/openai-php-api-1/ (fetched 2026-08-29T10:16:22.624137+00:00, sha 0892a5d44cc2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
