PHPackages                             fakrulhasansajib/smart-debugger - 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. fakrulhasansajib/smart-debugger

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

fakrulhasansajib/smart-debugger
===============================

A Laravel Smart Debugger Package

v1.0.0(11mo ago)08MITPHPPHP ^8.0

Since Jul 26Pushed 5mo agoCompare

[ Source](https://github.com/FakrulHasanSajib/smart-debugger)[ Packagist](https://packagist.org/packages/fakrulhasansajib/smart-debugger)[ RSS](/packages/fakrulhasansajib-smart-debugger/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Smart Debugger - Laravel AI Error Analyzer
==========================================

[](#smart-debugger---laravel-ai-error-analyzer)

**Smart Debugger** is a powerful Laravel package that captures application errors in real-time and uses **Google Gemini AI** to analyze them and provide **smart solutions in Bengali**.

It logs errors into the database and provides a dedicated dashboard to view them. You can also run a simple artisan command to ask AI for a fix!

---

🚀 Features
----------

[](#-features)

- **Auto Error Capture:** Automatically listens to Laravel logs and saves errors to the database.
- **Smart Dashboard:** View all errors in a clean UI at `/smart-debugger/dashboard`.
- **AI-Powered Analysis:** Uses Google Gemini AI (Model: `gemini-2.5-flash`) to analyze errors.
- **Bengali Solutions:** Provides code fixes and explanations in **Bengali (Bangla)**.
- **One-Command Fix:** Analyze errors directly from the terminal.
- **SSL Bypass:** Optimized for local development environments (fixes SSL certificate issues).

---

📦 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require fakrulhasan/smart-debugger
1. Publish Assets & Config
Publish the configuration file, migrations, and assets using the following command:

Bash

php artisan vendor:publish --provider="FakrulHasan\SmartDebugger\SmartDebuggerServiceProvider"
2. Run Migrations
Create the necessary tables for logging errors:

Bash

php artisan migrate
⚙️ Configuration
1. Get Google Gemini API Key
To use the AI features, you need a Google Gemini API Key.

Go to Google AI Studio

Create a new API Key (it's free!).

2. Set Environment Variable
Open your project's .env file and add the API key:

Code snippet

GEMINI_API_KEY=your_google_gemini_api_key_here
🛠 Usage
🔍 1. View Error Dashboard
Visit the following URL in your browser to see the list of captured errors: http://your-project.test/smart-debugger/dashboard

🤖 2. Analyze Errors with AI
To get an AI-generated solution for your latest errors, run:

Bash

php artisan smart-debugger:analyze
Output Example:

Plaintext

Analyzing error logs with AI...

🔴 Error: Division by zero
📂 File: routes/web.php (Line: 16)

✨ AI Suggestion:
আপনার Laravel প্রোজেক্টে 'Division by zero' ত্রুটিটি দেখাচ্ছে...
সমাধান: ভাগ করার আগে ভাজক শূন্য কিনা তা চেক করুন।

Code Solution:
if ($divisor == 0) { ... }
🔧 Troubleshooting
Q: AI is returning "Not Found" error. A: Make sure you have set the correct GEMINI_API_KEY in your .env file and run php artisan config:clear.

Q: Errors are not showing in the dashboard. A: Ensure you have run php artisan migrate. The package uses Laravel's default logging system, so make sure your LOG_CHANNEL in .env is set to stack or daily.

📄 License
The MIT License (MIT). Please see License File for more information.

👨‍💻 Author
Fakrul Hasan - GitHub:
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance62

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

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

343d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/98114226?v=4)[Fakrul Hasan Sajib](/maintainers/FakrulHasanSajib)[@FakrulHasanSajib](https://github.com/FakrulHasanSajib)

---

Top Contributors

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

---

Tags

laravelerrordebuggerBanglapatch

### Embed Badge

![Health badge](/badges/fakrulhasansajib-smart-debugger/health.svg)

```
[![Health](https://phpackages.com/badges/fakrulhasansajib-smart-debugger/health.svg)](https://phpackages.com/packages/fakrulhasansajib-smart-debugger)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)

PHPackages © 2026

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