debugbird / php
DebugBird PHP SDK
Installs: 8
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/debugbird/php
This package is not auto-updated.
Last update: 2026-02-10 22:11:39 UTC
README
DebugBird is a lightweight PHP SDK for capturing logs and crashes, sending them to your DebugBird dashboard.
Installation
You can install the package via Composer:
composer require debugbird/php
Usage
Initialize the Logger
Before 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' ]);
Logging Messages
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');
Capturing Exceptions & Errors
Exceptions and errors are automatically captured once DebugBird is initialized:
throw new Exception('Something went wrong!');
Disabling Specific Logging
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 ]);
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.