1. Go to this page and download the library: Download colu/colu 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/ */
colu / colu example snippets
use Colu\ColuSDK\Colu;
$colu = new Colu('my_company', 'testnet');
// This is your private key, keep it safe!!!
echo 'WIF: '.$colu->getWIF();
use Colu\ColuSDK\Colu;
$privateKey = 'cQQy71GeXGeFWnDtypas2roY2qrk3KWjJLCxoFqc2wibXr2wWxie'; // this is the WIF version of a private key
$colu = new Colu('my_company', 'testnet', $privateKey);
"qr" => $qrCode->getDataUri (), // this is the actual QR image
"code" => $qrRegCode, // send this to the registerUserByCode function
"message" => $message // send this to the registerUserByCode function