PHP code example of edituraedu / php-dbsc
1. Go to this page and download the library: Download edituraedu/php-dbsc 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/ */
edituraedu / php-dbsc example snippets
use EdituraEDU\\DBSC\\DBSC;
DBSC::Initialize(__DIR__ . '/DBSCConfig.json');
// Emit registration header when client has no DBSC cookie yet:
if (!DBSC::GetInstance()->HasDBSCCookie()) {
DBSC::GetInstance()->SendStartHeader();
}
use EdituraEDU\\DBSC\\DBSC;
const DBSC_START_REFRESH_FLOW = true;
DBSC::Initialize(__DIR__ . '/DBSCConfig.json');
echo json_encode(DBSC::GetInstance()->StartDBSCSession());
use EdituraEDU\\DBSC\\DBSC;
const DBSC_START_REFRESH_FLOW = true;
DBSC::Initialize(__DIR__ . '/DBSCConfig.json');
DBSC::GetInstance()->Refresh();
bash
composer