PHP code example of mariolucasdev / qrcode-pix
1. Go to this page and download the library: Download mariolucasdev/qrcode-pix 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/ */
mariolucasdev / qrcode-pix example snippets
composer
use mariolucasdev\QrCodePix;
', // Chave pix
'amount' => 0, // Valor em Float
'description' => '', // Descrição do Pagamento
'name' => '', // Nome do Recebedor
'city' => '' // Cidade + UF (Araripina-PE)
);
$pix = (new QrCodePix\QrCodePix)->generate($data);
print_r($pix);