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. naif/chatgpt

ActiveLibrary

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 1mo ago

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 64% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

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

539d 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

[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)[digital-creative/nova-filepond

A Nova field for uploading File, Image and Video using filepond.

5568.0k1](/packages/digital-creative-nova-filepond)

PHPackages © 2026

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