PHPackages                             naif/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. naif/chatgpt

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

naif/chatgpt
============

A Laravel Nova tool to ask ChatGPT and store question with answer to db to be viewed.

v1.0.7(1y ago)31.6k5[1 PRs](https://github.com/naifalshaye/chatgpt/pulls)MITVuePHP ^7.3|^8.0

Since Nov 25Pushed 1y ago3 watchersCompare

[ Source](https://github.com/naifalshaye/chatgpt)[ Packagist](https://packagist.org/packages/naif/chatgpt)[ RSS](/packages/naif-chatgpt/feed)WikiDiscussions master Synced yesterday

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

### Laravel Nova 4 ChatGPT Integration Tool

[](#laravel-nova-4-chatgpt-integration-tool)

A Laravel Nova 4 ChatGPT Integration Tool combines Laravel Nova 4 with the ChatGPT API.

Features
--------

[](#features)

- Ask ChatGPT
- Store questions to database
- Copy answer
- Display total Tokens used for each request
- Tracks token usage
- History Page for easy reference
- View question page
- Delete question
- Clear history

### Requirements

[](#requirements)

- PHP 8.0 or higher
- Nova 4
- OpenAI API Key
-

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

[](#installation)

You can install the package into a Laravel app that uses Nova via composer:

```
composer require naif/chatgpt
```

Publish Model, Migration and Config files

```
php artisan vendor:publish --provider="Naif\Chatgpt\ToolServiceProvider"

```

Run Migrate

```
php artisan migrate

```

Add the below to .env file:

```
CHATGPT_NOVA4_API_KEY=###############
CHATGPT_NOVA4_MAX_TOKENS=1000

```

You can increase the tokens to get more text from ChatGPT response.

Usage
-----

[](#usage)

Add the tool to NovaServiceProvider.php

```
  public function tools()
    {
        return [
            new Chatgpt()
        ];
    }

```

Screenshots
-----------

[](#screenshots)

[![](screenshots/dark-home.png)](screenshots/dark-home.png)

[![](screenshots/light-home.png)](screenshots/light-home.png)

[![](screenshots/history.png)](screenshots/history.png)

[![](screenshots/view.png)](screenshots/view.png)

Support:
--------

[](#support)

Bug Tracker:

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

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

585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/323a5cbb1087ce4edc9deec40b03736b6d43a3ca205615b346108ed57f58e50e?d=identicon)[naifdev](/maintainers/naifdev)

---

Top Contributors

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

---

Tags

laravelaiopenainovaartificial intelligenceChatGptnova4text-davinci-003

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2852.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2862.1M9](/packages/outl1ne-nova-sortable)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[sietse85/nova-button

(Nova 4+) A Laravel Nova package for adding buttons to your resources.

37371.5k](/packages/sietse85-nova-button)[digital-creative/custom-relationship-field

Emulate HasMany relationship without having a real relationship set between resources

33268.5k](/packages/digital-creative-custom-relationship-field)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2169.2k](/packages/smousss-laravel-globalize)

PHPackages © 2026

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