PanicPulse brings Laravel exception monitoring, Gemini-powered analysis, and real-time Telegram notifications together in one developer-focused package.
PanicPulse is built around a simple idea: when your application encounters a problem, the information you need should reach you quickly and in a useful format.
Receive application exception information through your configured Telegram destination instead of relying only on traditional log inspection.
Use Gemini-assisted analysis to help interpret exceptions and make root-cause investigation more understandable.
Send reports directly to a Telegram chat or team group where developers can see them quickly.
Install PanicPulse through Composer and initialize it using a dedicated Artisan command.
Telegram and Gemini credentials are configured through Laravel environment variables rather than being embedded into application code.
Follow a clear installation and testing flow without manually modifying package internals.
PanicPulse connects the important pieces of your exception-monitoring workflow.
Your application encounters an exception.
PanicPulse processes the exception through its configured reporting pipeline.
Gemini is used for AI-assisted analysis and root-cause understanding.
The resulting report is delivered to your configured Telegram destination.
PanicPulse requires a few external credentials before it can deliver reports and perform AI-assisted analysis.
Your Laravel application.
PHP package management.
Bot and destination chat.
AI analysis credential.
Follow the installation flow below to connect your Laravel application with PanicPulse.
From the root directory of your Laravel application, install PanicPulse using Composer.
composer require fortechub/panic-pulse
The installer publishes the required configuration and establishes the package's exception pipeline.
php artisan panic-pulse:install
PanicPulse needs three environment values to connect your application to its external services.
Create a Telegram bot using BotFather and copy the HTTP API token provided after creation.
Start your bot, add it to your Telegram group
if required, send a test message, and retrieve
the numeric chat ID through Telegram's
getUpdates
endpoint.
https://api.telegram.org/botYOUR_BOT_TOKEN/getUpdates
403 Forbidden.
Create your Gemini API key through Google AI Studio and keep it securely stored as an environment variable.
Open Google AI Studio
Add your credentials to the Laravel
.env
file. Keeping these values outside your application
source makes credential management safer.
PANIC_PULSE_TELEGRAM_BOT_TOKEN=your_bot_token_here
PANIC_PULSE_CHAT_ID=your_chat_id_here
GEMINI_API_KEY=your_gemini_api_key_here
Before using PanicPulse in a production application, trigger a controlled exception and confirm that the report reaches Telegram.
use Illuminate\Support\Facades\DB;
Route::get('/test-panic', function () {
// Intentionally triggers an exception
DB::table('non_existent_table_xyz')->get();
});
php artisan config:clear
php artisan cache:clear
php artisan serve
Open the following route in your browser:
If the configuration is correct, PanicPulse should process the exception and send the report to your configured Telegram destination.
The three values PanicPulse requires to operate.
| Variable | Purpose | Example |
|---|---|---|
| PANIC_PULSE_TELEGRAM_BOT_TOKEN | Telegram bot authentication. | 712345678:AAG... |
| PANIC_PULSE_CHAT_ID | Telegram destination. | -100xxxxxxxxxx |
| GEMINI_API_KEY | Gemini AI authentication. | AIzaSy... |
PanicPulse depends on external service credentials. Keep those credentials private and out of source control.
Do not commit your Telegram bot token, chat ID, or Gemini API key to public repositories.
Keep external service credentials in environment configuration.
Run
php artisan config:clear
after changing environment values.
Prefer
php artisan panic-pulse:install
instead of manually modifying package internals.
Start with these common configuration checks.
Open your Telegram bot and click Start. If using a group, make sure the bot has been added and that a message has been sent to the group.
php artisan config:clear
php artisan cache:clear
Confirm that Composer completed successfully and that you ran:
php artisan panic-pulse:install
PanicPulse is a Laravel package designed for exception monitoring, Telegram reporting, and Gemini-assisted error analysis.
Telegram is used as the notification destination for PanicPulse reports, so you need a Telegram bot and configured chat destination.
Gemini is used for AI-assisted analysis of application exceptions and root-cause understanding.
No. The test route intentionally triggers an exception and should be removed after you confirm PanicPulse is working.
Install PanicPulse, connect Telegram and Gemini, and give your Laravel application a faster path from failure to diagnosis.