1. Go to this page and download the library: Download phumin/promptparse 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/ */
phumin / promptparse example snippets
use phumin\PromptParse\Parser;
// Example data
$ppqr = Parser::parse("000201010211...");
// Get Value of Tag ID '00'
$ppqr->getTagValue("00") // Returns '01'
use phumin\PromptParse\Library\TLV;
// Example data
$data = [
TLV::tag("00", "01"),
TLV::tag("01", "11"),
...
];
// Set CRC Tag ID '63'
TLV::withCrcTag(TLV::encode($data), '63'); // Returns '000201010211...'
use phumin\PromptParse\Generate;
$payload = Generate::billPayment("1xxxxxxxxxxxx", "300.0", "INV12345");
// TODO: Create QR Code from payload
use phumin\PromptParse\Validate;
$data = Validate::slipVerify("00550006000001...");
list($sendingBank, $transRef) = $data;
// or
$sendingBank = $data[0];
$transRef = $data[1];
// TODO: Inquiry transaction from Bank Open API
use phumin\PromptParse\Parser;
$botBarcode = Validate::parseBarcode("|310109999999901\r...");
$payload = $botBarcode->toQrTag30();
// TODO: Create QR Code from payload
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.