paseto/boletos

Gerador de Boletos PDF

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

This package is auto-updated.

Last update: 2022-06-19 23:35:13 UTC


README

Build Status Latest Stable Version Total Downloads

Gera boletos em PDF padrão CNAB 400.

Bancos Versão
Banco do Brasil Teste
Banrisul Teste
Bradesco Teste
Caixa Teste
Itaú Teste
Sicredi Estável

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