PHP code example of logbrew / sdk
1. Go to this page and download the library: Download logbrew/sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
logbrew / sdk example snippets
ogBrew\LogBrewClient;
use LogBrew\RecordingTransport;
$client = LogBrewClient::create('LOGBREW_API_KEY', 'checkout-worker', '1.0.0');
$client->log('evt_log_001', '2026-06-02T10:00:03Z', [
'message' => 'worker started',
'level' => 'info',
'logger' => 'job-runner',
]);
$client->flush(RecordingTransport::alwaysAccept());