paseto/boletos

Gerador de Boletos PDF

dev-master 2020-08-19 19:30 UTC

This package is auto-updated.

Last update: 2025-02-20 05:24:17 UTC


README

Build Status Latest Stable Version Total Downloads

Gera boletos em PDF padrão CNAB 400.

Setup

$ composer require paseto/boletos

Usage

Verificar exemplos na pasta examples

Impressão em lote

Instance PDF class

$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');

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D