PHP code example of snowrunescape / baselime-sdk
1. Go to this page and download the library: Download snowrunescape/baselime-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/ */
snowrunescape / baselime-sdk example snippets
use Baselime\Baselime;
// Initialize Baselime SDK with your API key
$baselime = new Baselime('your-api-key');
// Send an event
$baselime->event('my-service', [
'message' => 'This is an example log event',
'error' => 'TypeError: Cannot read property \'something\' of undefined',
'requestId' => '6092d6f0-3bfa-4d62-9d0b-5bc7ae6518a1',
'namespace' => 'https://api.domain.com/resource/{id}'
]);