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

AbandonedArchivedLibrary[API Development](/categories/api)

adrianmejias/laravel-open-ai
============================

Open AI wrapper for Laravel Framework.

1.0.2(3y ago)4701MITPHPPHP ^8.0|^8.1

Since Jan 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/adrianmejias/laravel-open-ai)[ Packagist](https://packagist.org/packages/adrianmejias/laravel-open-ai)[ Docs](https://github.com/adrianmejias/laravel-open-ai)[ Fund](https://paypal.me/adrianmejias)[ GitHub Sponsors](https://github.com/adrianmejias)[ RSS](/packages/adrianmejias-laravel-open-ai/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (4)Dependencies (10)Versions (5)Used By (0)

Open AI Package for Laravel
===========================

[](#open-ai-package-for-laravel)

[![security](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/security.yml/badge.svg)](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/security.yml) [![tests](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/tests.yml/badge.svg)](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/tests.yml) [![PHPStan](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/phpstan.yml/badge.svg)](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/phpstan.yml) [![PHP CS Fixer](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/adrianmejias/laravel-open-ai/actions/workflows/php-cs-fixer.yml) [![StyleCI](https://camo.githubusercontent.com/2409df290e27bd1be0f7db2c1b8d77411227490e2a05f92b5d2baa885e07103b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3434363737303630322f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/446770602?branch=main) [![Build Status](https://camo.githubusercontent.com/da6b881c24c0e967f78467e70cd0bf6f7f85821cdc9521f2ce4be07f5216f9d6/68747470733a2f2f7472617669732d63692e636f6d2f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d61692e7376673f6272616e63683d6d61696e)](https://travis-ci.com/adrianmejias/laravel-open-ai) [![codecov](https://camo.githubusercontent.com/b2ddefb4f6c4ad0db3764f42a419f6e4a56d559989b4428c6825fa31b7cf55ab/68747470733a2f2f636f6465636f762e696f2f67682f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d61692f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d37544357594231595636)](https://codecov.io/gh/adrianmejias/laravel-open-ai) [![Downloads](https://camo.githubusercontent.com/7b623548bce10608cfab34c5ceb2bbb9729bbb8f8d9db2e5db8fc2f333487d90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d6169)](https://camo.githubusercontent.com/7b623548bce10608cfab34c5ceb2bbb9729bbb8f8d9db2e5db8fc2f333487d90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d6169) [![Packagist](https://camo.githubusercontent.com/f4482406d8e3163e315bb6f3e6e996989d7e8a446cfab4e97feeeadb96bf1e82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d6169)](https://camo.githubusercontent.com/f4482406d8e3163e315bb6f3e6e996989d7e8a446cfab4e97feeeadb96bf1e82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61647269616e6d656a6961732f6c61726176656c2d6f70656e2d6169) [![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT) [![Liberapay](https://camo.githubusercontent.com/2c3c77ae37c45f38c80dfa44f1663ef509dae1a515d03e572036cdaf7d2e6b30/68747470733a2f2f696d672e736869656c64732e696f2f6c69626572617061792f706174726f6e732f61647269616e6d656a6961732e7376673f6c6f676f3d6c6962657261706179)](https://camo.githubusercontent.com/2c3c77ae37c45f38c80dfa44f1663ef509dae1a515d03e572036cdaf7d2e6b30/68747470733a2f2f696d672e736869656c64732e696f2f6c69626572617061792f706174726f6e732f61647269616e6d656a6961732e7376673f6c6f676f3d6c6962657261706179)

[Open AI](https://openai.com/api/) api wrapper for the [Laravel Framework](https://laravel.com/).

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

[](#installation)

This version supports PHP 8.0. You can install the package via composer:

`composer require adrianmejias/laravel-open-ai`

To create the `config/open-ai.php` configuration file:

`php artisan vendor:publish --tag=open-ai`

Usage
-----

[](#usage)

### Example

[](#example)

```
