PHPackages                             gouda/laravel-chatgpt - 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. gouda/laravel-chatgpt

ActiveLibrary

gouda/laravel-chatgpt
=====================

v0.1(2y ago)281PHP

Since Jun 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohamedgouda98/laravelChatGPT)[ Packagist](https://packagist.org/packages/gouda/laravel-chatgpt)[ RSS](/packages/gouda-laravel-chatgpt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

Laravel ChatGPT Package
=======================

[](#laravel-chatgpt-package)

\####Note: This is a version Beta and I wish to complete all my ideas in this package.

sample package for laravel applications to integrate with ChatGPT

Hi, I'm Gouda! 👋
================

[](#hi-im-gouda-)

🚀 About Me
----------

[](#-about-me)

I'm a Software Engineer...

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

[](#installation)

Install with composer

```
  composer require gouda/laravel-chatgpt
```

Add service Provider in config/app.php

```
\Gouda\LaravelChatgpt\LaravelChatGptServiceProvider::class,
```

run migration

```
php artisan migrate
```

Environment Variables
---------------------

[](#environment-variables)

To run this package, you will need to add the following environment variables to your .env file

`gpt_token`

`gpt_model`

OR run command:

```
 php artisan vendor:publish --tag=chat-gpt-config
```

How to use ?
------------

[](#how-to-use-)

### Send a new question:

[](#send-a-new-question)

```
$answer = LaravelGPT::newQuestion('Hello GPT!');
```

newQuestion function in this case will create dialog automatic in database, but if u want to send question in specific dialog you can use blew function:

Use this function to get all user dialogs:

```
LaravelGPTDialogs::getUserDialogs(Auth::id());
```

Use this function to get one dialog

```
LaravelGPTDialogs::getDialogById($dialog_id);
```

\#Audio

```
$audio = AudioGPT::newAudio($filePath);
```

you can pass lang as optional as:

```
$audio = AudioGPT::newAudio($filePath, 'ar');
```

Support
-------

[](#support)

For support, email

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

1061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc34b56d031369aad3d3a422ca752e53cbe477ed4065a97088bc89de0a800a5f?d=identicon)[mohamedgouda98](/maintainers/mohamedgouda98)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/gouda-laravel-chatgpt/health.svg)

```
[![Health](https://phpackages.com/badges/gouda-laravel-chatgpt/health.svg)](https://phpackages.com/packages/gouda-laravel-chatgpt)
```

PHPackages © 2026

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