DebugBird is a lightweight PHP SDK for capturing logs and crashes, sending them to your DebugBird dashboard.
You can install the package via Composer:
composer require debugbird/phpBefore logging, initialize DebugBird with your project credentials:
require 'vendor/autoload.php';
use DebugBird\DebugBird;
DebugBird::init([
'project_id' => 'your_project_id',
'api_key' => 'your_api_key'
]);Log messages with different types:
DebugBird::log('info', 'This is an informational message');
DebugBird::log('warning', 'This is a warning message');
DebugBird::log('error', 'This is an error message');Exceptions and errors are automatically captured once DebugBird is initialized:
throw new Exception('Something went wrong!');You can disable log or crash collection while initializing:
DebugBird::init([
'project_id' => 'your_project_id',
'api_key' => 'your_api_key',
'disable_logs' => true, // Disables log collection
'disable_errors' => true // Disables error/crash collection
]);Feel free to submit issues and pull requests to improve this SDK.
This package is proprietary. Contact contact@debugbird.com for licensing inquiries.