PHP code example of paseto / boleto-sicredi
1. Go to this page and download the library: Download paseto/boleto-sicredi 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/ */
paseto / boleto-sicredi example snippets
sh
$pdf = new \fpdf\FPDF();
...
foreach ($array as $key => $value){
...
$stream = base64_encode($GeradorBoleto->gerar($Boleto)->Output('doc.pdf','S'));
$GeradorBoleto->gerar($Boleto, $pdf);
}
$pdf->Output('doc.pdf', 'I');