PHP code example of vleks / bol-plaza-sdk

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

    

vleks / bol-plaza-sdk example snippets



use Vleks\BolPlazaSDK\Client;
use Vleks\BolPlazaSDK\ClientException;

--';

$bolPlazaClient = new Client($publicKey, $privateKey);
$bolPlazaClient->setTestMode(true);

try {
    $orders = $bolPlazaClient->getOrders();

    var_dump($orders);
} catch (ClientException $clientException) {
    echo 'An error occurred: ' . $clientException->getMessage();
}