PHP code example of logtide / sdk-php

1. Go to this page and download the library: Download logtide/sdk-php 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/ */

    

logtide / sdk-php example snippets


// Every integration follows the same pattern:
\LogTide\init([
    'dsn' => 'https://[email protected]',
    'service' => 'my-app',
]);

// Or use api_url + api_key separately:
\LogTide\init([
    'api_url' => 'https://your-logtide-instance.com',
    'api_key' => 'lp_your_key',
    'service' => 'my-app',
]);