1. Go to this page and download the library: Download condux/condux-laravel 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/ */
condux / condux-laravel example snippets
app(\Condux\Client::class)->captureMessage('cache miss storm', \Condux\Level::WARNING);
use Condux\Level;
use Condux\Scope;
Scope::setUser(['id' => (string) $request->user()?->id]); // setUser(null) on sign-out
Scope::setTag('tenant', $tenant->slug); // a null value removes a tag
Scope::setContext('subscription', ['seats' => 12]);
Scope::addBreadcrumb('checkout started', category: 'order', level: Level::INFO);