PHPackages                             sgraaf/openai-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sgraaf/openai-php

ActiveLibrary[API Development](/categories/api)

sgraaf/openai-php
=================

A thin PHP wrapper for the OpenAI API built upon libcurl.

0.1.6(3y ago)36.7k↑11.1%[1 PRs](https://github.com/sgraaf/openai-php/pulls)1MITPHP &gt;=8.0.0

Since Feb 15Compare

[ Source](https://github.com/sgraaf/openai-php)[ Packagist](https://packagist.org/packages/sgraaf/openai-php)[ Docs](https://github.com/sgraaf/openai-php)[ RSS](/packages/sgraaf-openai-php/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (1)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/sgraaf/openai-php).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

7

Last Release

1169d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8904453?v=4)[Steven van de Graaf](/maintainers/sgraaf)[@sgraaf](https://github.com/sgraaf)

---

Tags

phpapiclientsdkGPT-3openaiChatGpt

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sgraaf-openai-php/health.svg)

```
[![Health](https://phpackages.com/badges/sgraaf-openai-php/health.svg)](https://phpackages.com/packages/sgraaf-openai-php)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
