PHPackages                             yeloi/laravel-openai-connect - 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. yeloi/laravel-openai-connect

ActiveLibrary[API Development](/categories/api)

yeloi/laravel-openai-connect
============================

The Laravel-OpenAI-Connect package makes it easy to integrate OpenAI's cutting-edge machine learning capabilities into Laravel applications.

01[3 PRs](https://github.com/yodaylay22/Laravel-OpenAI-Connect/pulls)PHP

Since May 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yodaylay22/Laravel-OpenAI-Connect)[ Packagist](https://packagist.org/packages/yeloi/laravel-openai-connect)[ RSS](/packages/yeloi-laravel-openai-connect/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel OpenAI Connect Lib
==========================

[](#laravel-openai-connect-lib)

[![Latest Version on Packagist](https://camo.githubusercontent.com/73c254792bbb182db4211ee1a357e45b5f57fdf1acdc8dd0d8ee52a605c2a720/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79656c6f692f6c61726176656c2d6f70656e61692d636f6e6e6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yeloi/laravel-openai-connect)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fa8a3d020d489ed4e6b416a7b09113812b7e467e3cc40e9d00de7208b91f211d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79656c6f692f6c61726176656c2d6f70656e61692d636f6e6e6563742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/yeloi/laravel-openai-connect/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f05c4cd6e0c3579c4fb19c6a1e5a4bd730b0fd5920bf88d74a38d6b5682c7dcd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79656c6f692f6c61726176656c2d6f70656e61692d636f6e6e6563742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/yeloi/laravel-openai-connect/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2047934435cf6e5bc6d245e33022ec14820078e9162b4f81605ca6665a2eb177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79656c6f692f6c61726176656c2d6f70656e61692d636f6e6e6563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yeloi/laravel-openai-connect)

The Laravel-OpenAI-Connect package makes it easy to integrate OpenAI.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require yeloi/laravel-openai-connect
```

Add to your env file the openia api key:

```
OPENAI_API_KEY=
```

Usage
-----

[](#usage)

```
use Connectors\OpenAIConnect\OpenAI;

$system = "You are a tech company employee named bob.";
$message = [
    ["role" => "user", "content" => "what is your name?"],
];

$data = OpenAI::model('gpt-3.5-turbo')->system($system)->prompt($message)->options(['max_tokens' => 1000])->send();

dd($data->message);
// My name is Bob. How can I assist you today?

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Yuri Eloi](https://github.com/yodaylay22)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12820569?v=4)[Yuri Eloi](/maintainers/Yodaylay22)[@yodaylay22](https://github.com/yodaylay22)

---

Top Contributors

[![yodaylay22](https://avatars.githubusercontent.com/u/12820569?v=4)](https://github.com/yodaylay22 "yodaylay22 (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

### Embed Badge

![Health badge](/badges/yeloi-laravel-openai-connect/health.svg)

```
[![Health](https://phpackages.com/badges/yeloi-laravel-openai-connect/health.svg)](https://phpackages.com/packages/yeloi-laravel-openai-connect)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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