PHP code example of biqli / sdk

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

    

biqli / sdk example snippets


use Biqli\Sdk\Biqli;

$biqli = new Biqli($_ENV['BIQLI_API_KEY']);

$biqli->track->lead([
    'clickId' => $_COOKIE['bq_id'] ?? null,
    'eventId' => 'signup:customer_123',
    'eventName' => 'Signed up',
    'customerExternalId' => 'customer_123',
]);

$biqli->track->sale([
    'customerExternalId' => 'customer_123',
    'amount' => 4999,
    'currency' => 'usd',
    'paymentProcessor' => 'stripe',
    'invoiceId' => 'invoice_123',
]);