debugbird/laravel

1.0.2 2025-02-11 17:58 UTC

This package is not auto-updated.

Last update: 2025-09-09 20:33:52 UTC


README

DebugBird Laravel SDK provides seamless log and crash collection for your Laravel applications, sending data to your DebugBird dashboard.

Installation

You can install the package via Composer:

composer require debugbird/laravel

Then, publish the configuration file:

php artisan vendor:publish --tag=debugbird-config

Configuration

After publishing, configure your .env file:

DEBUGBIRD_PROJECT_ID=your_project_id
DEBUGBIRD_API_KEY=your_api_key

You can disable log or crash collection in your .env file:

DEBUGBIRD_DISABLE_LOGS=true
DEBUGBIRD_DISABLE_ERRORS=true

Usage

Automatic Logging

Once installed, DebugBird will automatically capture logs and exceptions based on the log level defined in your .env file.

Manually Logging Messages

You can manually log messages with different types:

use DebugBird\DebugBird;

DebugBird::log('info', 'This is an informational message');
DebugBird::log('warning', 'This is a warning message');
DebugBird::log('error', 'This is an error message');

Custom Exception Handling

If you want to manually capture exceptions, you can do:

try {
    throw new Exception('Something went wrong!');
} catch (Exception $e) {
    DebugBird::captureException($e);
}

Contributing

Feel free to submit issues and pull requests to improve this SDK.

License

This package is proprietary. Contact contact@debugbird.com for licensing inquiries.