PHPackages                             juizmill/boleto-zend-framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. juizmill/boleto-zend-framework

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

juizmill/boleto-zend-framework
==============================

Modulo Zend Framework para boletos

0.1.2(8y ago)119MITPHPPHP &gt;=7.0

Since Aug 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/juizmill/BoletoZendFramework)[ Packagist](https://packagist.org/packages/juizmill/boleto-zend-framework)[ Docs](https://github.com/juizmill)[ RSS](/packages/juizmill-boleto-zend-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (11)Versions (4)Used By (0)

BoletoZendFramework
===================

[](#boletozendframework)

[![Packagist](https://camo.githubusercontent.com/89682d119519b2ea1762e56796bb398ebe2582e6fecd1f9ca245205640426c2c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a75697a6d696c6c2f626f6c65746f2d7a656e642d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/juizmill/BoletoZendFramework)[![Build Status](https://camo.githubusercontent.com/bfbb74d74171b7228f9e7c39cb6d4c55df56c01724c8e09b076b9d03f9883c3d/68747470733a2f2f7472617669732d63692e6f72672f6a75697a6d696c6c2f426f6c65746f5a656e644672616d65776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/juizmill/BoletoZendFramework)[![Packagist](https://camo.githubusercontent.com/63e1547f56148bb4d48ddaf2b18d5c157af7bae6a0daf0c65f5521fa71049d4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a75697a6d696c6c2f626f6c65746f2d7a656e642d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/juizmill/BoletoZendFramework)[![Code Climate](https://camo.githubusercontent.com/f0b75cb21298dcbad418f7455410cf51b914d05670c084a25d1e3e523c4ec2fe/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a75697a6d696c6c2f426f6c65746f5a656e644672616d65776f726b2f6261646765732f6770612e737667)](https://codeclimate.com/github/juizmill/BoletoZendFramework)[![Test Coverage](https://camo.githubusercontent.com/dce261b2a0a21f665894eef1e0bdcfa7bf60fb819f4307a830529d5913172b33/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a75697a6d696c6c2f426f6c65746f5a656e644672616d65776f726b2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/juizmill/BoletoZendFramework/coverage)[![Issue Count](https://camo.githubusercontent.com/9de895cc3f1aeb283ff9e393020ca78790089047cba9648a31a7cefe3d012273/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a75697a6d696c6c2f426f6c65746f5a656e644672616d65776f726b2f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/juizmill/BoletoZendFramework)

Modulo Zend Framework para boletos

Este projeto é uma adaptação do projeto [laravel-boleto](https://github.com/eduardokum/laravel-boleto) Para ZF3.

Configuração
============

[](#configuração)

No arquivo `module.config.php` adiciona `BoletoZendFramework`

Copie o arquivo `boleto-zendframework.golbal.php` para a pasta autoload do seu projeto, este arquivo você configura alguns parametros do banco.

No controller você pode fazer algo deste tipo sendo que `$this->boletoService` é o serviço `boleto.zend.framework`

```
    public function boletoAction()
    {
        $pagador = [
            'nome' => 'Cliente',
            'endereco' => 'Rua um, 123',
            'bairro' => 'Bairro',
            'cep' => '99999-999',
            'uf' => 'UF',
            'cidade' => 'CIDADE',
            'documento' => '999.999.999-99',
        ];

        $dadosBoleto = [
            'dataVencimento' => new \Carbon\Carbon('1790-01-01'),
            'valor' => 100.00,
            'numero' => 1,
            'numeroDocumento' => 1,
            'codigoCliente' => 99999,
        ];

        $boleto = $this->boletoService->setDadosBoleto($dadosBoleto)
            ->setDadosPagador($pagador)
            ->getBoleto(BoletoServiceInterface::CAIXA);

        $response = new Response();
        $header = new Headers();
        $header->addHeaders([
            'Content-Type' => 'application/pdf',
            'Content-Disposition' => 'inline; boleto.pdf',
        ]);
        $response->setHeaders($header);
        $response->setStatusCode(200);
        $response->setContent($boleto->renderPDF());

        return $response;
    }

```

Caso prefira usar a estratégia, basta adicionar no `module.config.php`

```
    'view_manager' => [
        'strategies' => [
            'ViewPdfStrategy'
        ],
    ]

```

No controller você faz desta forma:

```
        $boleto = $this->boletoService->setDadosBoleto($dadosBoleto)
            ->setDadosPagador($pagador)
            ->getBoleto(BoletoServiceInterface::CAIXA);

        return new BoletoPdfModel(['data' => $boleto], ['name' => 'Nome do boleto para donwload']);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01399a69d16f1084c9111c02387bdd3ebb023d8929f1235c9be784ffdd100552?d=identicon)[juizmill](/maintainers/juizmill)

---

Top Contributors

[![juizmill](https://avatars.githubusercontent.com/u/1959742?v=4)](https://github.com/juizmill "juizmill (24 commits)")

---

Tags

pdfzfboleto

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/juizmill-boleto-zend-framework/health.svg)

```
[![Health](https://phpackages.com/badges/juizmill-boleto-zend-framework/health.svg)](https://phpackages.com/packages/juizmill-boleto-zend-framework)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M472](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M490](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
