BtcFormat

The purpose of this format is to enable users to display a QrCode to easily make payments to the specified wallet.

Attributes of this class:

Usage


use Da\QrCode\QrCode;
use Da\QrCode\Format\BtcFormat; 

$format = new BtcFormat(['address' => '175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W', 'amount' => 1, 'name' => 'antonio']);

$qrCode = new QrCode($format);

header('Content-Type: ' . $qrCode->getContentType());

echo $qrCode->writeString();

© 2amigos 2013-2023