PHPackages                             nanos/openai-exceptions - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. nanos/openai-exceptions

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

nanos/openai-exceptions
=======================

Use the OpenAI API together with Laravel Ignition's Suggestions to show AI-powered fixes for errors in your Laravel application.

1.0.2(3y ago)249MITPHPPHP ^8.1.0

Since Feb 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nanos/openai-exceptions)[ Packagist](https://packagist.org/packages/nanos/openai-exceptions)[ RSS](/packages/nanos-openai-exceptions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

OpenAI powered fixes for your Laravel errors
============================================

[](#openai-powered-fixes-for-your-laravel-errors)

Use the OpenAI API together with Laravel Ignition's Suggestions to show AI-powered fixes for errors in your Laravel application.

See [Add AI powered fixes to your Laravel error pages](https://blog.thms.uk/2023/02/openai-exceptions-composer) for details.

Get started
-----------

[](#get-started)

First install OpenAI Exceptions via [Composer](https://getcomposer.org/). You'll probably want to install it as dev dependency:

```
composer require --dev nanos/openai-exceptions
```

Next, publish the configuration file:

```
php artisan vendor:publish --provider="Nanos\OpenaiExceptions\OpenAiSolutionServiceProvider" --tag="config"
```

This will create a `config/openai-exceptions.php` configuration file in your project, which you can modify to your needs. All options are documented in the file, but the only one you need is your OpenAI API key, which you'll specify in your `.env` file:

```
OPENAI_API_KEY={YOUR KEY HERE}

```

Customising the prompt
----------------------

[](#customising-the-prompt)

If you wish to customise the prompt that is being sent to the OpenAI client for every exception, you can publish the blade view, and change it as desired:

```
 php artisan vendor:publish --provider="Nanos\OpenaiExceptions\OpenAiSolutionServiceProvider" --tag="views"
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~1 days

Total

5

Last Release

1189d ago

Major Versions

0.0.3 → 1.0.02023-02-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/7975f1eef8138ac187a095cad6e8e344281e9f05ee41887cd0ce096354ec9495?d=identicon)[thms.uk](/maintainers/thms.uk)

---

Top Contributors

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

---

Tags

composer-packagelaravelphp

### Embed Badge

![Health badge](/badges/nanos-openai-exceptions/health.svg)

```
[![Health](https://phpackages.com/badges/nanos-openai-exceptions/health.svg)](https://phpackages.com/packages/nanos-openai-exceptions)
```

###  Alternatives

[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[spatie/laravel-artisan-dd

Run dd from your commandline

16387.7k1](/packages/spatie-laravel-artisan-dd)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[daylerees/anbu

The Anbu profiler for Laravel 4.

3054.9k](/packages/daylerees-anbu)[thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.

2214.4k](/packages/thehocinesaad-laravel-error-ai)

PHPackages © 2026

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