PHP code example of wandesnet / qrcode-pix-laravel
1. Go to this page and download the library: Download wandesnet/qrcode-pix-laravel 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/ */
wandesnet / qrcode-pix-laravel example snippets
use WandesCardoso\Pix\Facades\Pix;
use WandesCardoso\Pix\Enums\TypeKey;
$pix = Pix::make(
typeKey: TypeKey::EMAIL,
key: '[email protected]',
amount: 12,
recipient: 'Wandes Cardoso',
identification: '12345678901',
city: 'Corrente',
description: 'Pagamento do pedido',
isUniquePayment: false
);
$pix->getQrCode(); //gera a imagem do QRCode em base64
$pix->generateCopyPasteCode(); //gera o código copiar e colar