PHPackages                             developh/open-ai - 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. developh/open-ai

ActiveLibrary[API Development](/categories/api)

developh/open-ai
================

Laravel wrapper for OpenAI api, Code Completion, Text Completion and Image generation

v0.0.1(3y ago)27221MITPHPPHP ^7.4 || ^8.1

Since Feb 5Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/HamzaAlayed/open-ai)[ Packagist](https://packagist.org/packages/developh/open-ai)[ RSS](/packages/developh-open-ai/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

OpenAI wrapper for Laravel
==========================

[](#openai-wrapper-for-laravel)

$$ x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} $$

#### Environment variables

[](#environment-variables)

```
OPENAI_API_URL=https://api.openai.com/v1
```

Your secret API keys [OpenAI API Keys](https://platform.openai.com/account/api-keys)

```
OPENAI_API_KEY=SECRET_KEY
```

Your [Organization ID](https://platform.openai.com/account/org-settings)

```
OPENAI_ORGANIZATION=ORGANIZATION-ID
```

#### Text basic completion

[](#text-basic-completion)

```
OpenAI::textCompletion('Write this is a test');
```

#### Text advance completion

[](#text-advance-completion)

```
OpenAI::model('text-davinci-003')
->temperature(0.25)
->topP(0)
->textCompletion('Write this is a test');
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

1244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/163016156?v=4)[Developh](/maintainers/developh)[@Developh](https://github.com/Developh)

---

Top Contributors

[![HamzaAlayed](https://avatars.githubusercontent.com/u/7230722?v=4)](https://github.com/HamzaAlayed "HamzaAlayed (7 commits)")

---

Tags

chatgpt-apilaravelopenai-apiopenai-chatgptlaravelopenaiChatGptembeddingsfine-tuningcode completionimage-generationText-CompletionAI-models

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/developh-open-ai/health.svg)

```
[![Health](https://phpackages.com/badges/developh-open-ai/health.svg)](https://phpackages.com/packages/developh-open-ai)
```

###  Alternatives

[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5223.2k](/packages/claude-php-claude-php-sdk-laravel)[creativecrafts/laravel-ai-assistant

A handy package to access and interact with OpenAi endpoint

141.6k](/packages/creativecrafts-laravel-ai-assistant)

PHPackages © 2026

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