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 2w 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 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

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

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

24.3k69.5k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)

PHPackages © 2026

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