PHPackages                             paseto/boleto-sicredi - 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. paseto/boleto-sicredi

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

paseto/boleto-sicredi
=====================

Gerador de Boleto Sicredi

v0.1.6(6y ago)198563[1 issues](https://github.com/paseto/boleto-sicredi/issues)PHPPHP ^7.2CI failing

Since Sep 26Pushed 6y ago3 watchersCompare

[ Source](https://github.com/paseto/boleto-sicredi)[ Packagist](https://packagist.org/packages/paseto/boleto-sicredi)[ RSS](/packages/paseto-boleto-sicredi/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (6)Versions (8)Used By (0)

Gerador de Boletos Sicredi
==========================

[](#gerador-de-boletos-sicredi)

[![Build Status](https://camo.githubusercontent.com/c465aed804be7b0828f95ad697f78094df4f9ab10ceef4ba2fd7ccc849848cde/68747470733a2f2f7472617669732d63692e6f72672f70617365746f2f626f6c65746f2d736963726564692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/paseto/boleto-sicredi)[![Latest Stable Version](https://camo.githubusercontent.com/f773a87d5f3a21cd1b0a352f9771630713211dc1a42581d34ce7e313baf7a976/68747470733a2f2f706f7365722e707567782e6f72672f70617365746f2f626f6c65746f2d736963726564692f762f737461626c65)](https://packagist.org/packages/paseto/boleto-sicredi)[![Total Downloads](https://camo.githubusercontent.com/4b57535fc23e0587b5f117742a92921a349d848a5e9ae981c38c306b21b5edc7/68747470733a2f2f706f7365722e707567782e6f72672f70617365746f2f626f6c65746f2d736963726564692f646f776e6c6f616473)](https://packagist.org/packages/paseto/boleto-sicredi)[![](https://camo.githubusercontent.com/e69056e43835acc12fbec975e029bab0e0f3952dc13668cb4797b9bed07bb4f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70617365746f2f626f6c65746f2d736963726564692e737667)](https://camo.githubusercontent.com/e69056e43835acc12fbec975e029bab0e0f3952dc13668cb4797b9bed07bb4f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70617365746f2f626f6c65746f2d736963726564692e737667)

Gera boletos Sicredi em PDF padrão CNAB 400.

### Setup

[](#setup)

```
$ composer require paseto/boleto-sicredi
```

### Usage

[](#usage)

```
require './vendor/autoload.php';

use Boleto\Boleto;
use Boleto\Cedente;
use Boleto\Sacado;
use Boleto\GeradorBoleto;
use Boleto\Banco\Sicredi;

$Boleto = new Boleto();

//Configurações do banco
$Sicredi = new Sicredi();
$Sicredi->setCarteira('A');//C - Sem registro | A - Com Registro
$Sicredi->setPosto("04");
$Sicredi->setByte("2");

//Dados do Boleto
$Boleto->setBanco($Sicredi);
$Boleto->setNumeroMoeda("9");
$Boleto->setDataVencimento(DateTime::createFromFormat('d/m/Y', "10/10/2017"));
$Boleto->setDataDocumento(DateTime::createFromFormat('d/m/Y', "22/05/2017"));
$Boleto->setDataProcessamento(DateTime::createFromFormat('d/m/Y', "22/05/2017"));
$Boleto->addInstrucao("- Sr. Caixa, não receber após o vencimento");
$Boleto->addInstrucao("- Após o vencimento cobrar mora diária de 0,33%");
$Boleto->addDemonstrativo("Orçamento realizado em 22/05/2017");
$Boleto->addDemonstrativo("Execução de serviços diversos");
$Boleto->setValorBoleto("90,00");
$Boleto->setNossoNumero("01085");

//Dados do Cendente
$Cedente = new Cedente();
$Cedente->setNome("Global Components");
$Cedente->setAgencia("2217");
$Cedente->setDvAgencia("0");
$Cedente->setConta("11448");
$Cedente->setDvConta("9");
$Cedente->setEndereco("Rua Carlos Castro, N&ordm; 245, Centro");
$Cedente->setCidade("Pinheiros");
$Cedente->setUf("SC");
$Cedente->setCpfCnpj("51.246.337/0001-14");
$Cedente->setCodigoCedente("11448");
$Boleto->setCedente($Cedente);

//Dados do Sacado
$Sacado = new Sacado();
$Sacado->setNome("Marcos da Silva");
$Sacado->setTipoLogradouro("Rua");
$Sacado->setEnderecoLogradouro("Av Prefeiro Jose Da Silva");
$Sacado->setNumeroLogradouro("100");
$Sacado->setCidade("São Vicente");
$Sacado->setUf("SP");
$Sacado->setCep("11380-000");
$Boleto->setSacado($Sacado);

//Gera nosso número padrão sicredi
$Sicredi->setNossoNumeroFormatado($Boleto);

//Gera boleto em PDF
$GeradorBoleto = new GeradorBoleto();
$GeradorBoleto->gerar($Boleto)->Output('boleto.pdf', 'I');
```

### Impressão em lote

[](#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
------------

[](#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

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~138 days

Recently: every ~204 days

Total

7

Last Release

2369d ago

PHP version history (2 changes)v0.1.0PHP ~5.6|~7.0

v0.1.3PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ea689b9912df39e779b2aef84da7c87f6deeeb9f376016109036a3d1821f139?d=identicon)[paseto](/maintainers/paseto)

---

Top Contributors

[![paseto](https://avatars.githubusercontent.com/u/1163778?v=4)](https://github.com/paseto "paseto (24 commits)")[![lafraga93](https://avatars.githubusercontent.com/u/14353736?v=4)](https://github.com/lafraga93 "lafraga93 (5 commits)")[![rafaelzuim](https://avatars.githubusercontent.com/u/8863773?v=4)](https://github.com/rafaelzuim "rafaelzuim (1 commits)")

---

Tags

pdfboletosicredi

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/paseto-boleto-sicredi/health.svg)

```
[![Health](https://phpackages.com/badges/paseto-boleto-sicredi/health.svg)](https://phpackages.com/packages/paseto-boleto-sicredi)
```

###  Alternatives

[carlos-meneses/laravel-mpdf

Laravel Mpdf: Using Mpdf in Laravel to generate Pdfs.

4433.4M13](/packages/carlos-meneses-laravel-mpdf)[kartik-v/yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

1745.7M89](/packages/kartik-v-yii2-mpdf)[contributte/pdf

Pdf response extension for Nette Framework

43998.4k4](/packages/contributte-pdf)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1111.2k](/packages/abydahana-aksara)[robregonm/yii2-pdf

Yii 2 PDF Response Formatter

4647.8k1](/packages/robregonm-yii2-pdf)[swiss-payment-slip/swiss-payment-slip-fpdf

Create Swiss payment slips with reference number (ESR) or without (ES) as PDFs with FPDF

11282.8k](/packages/swiss-payment-slip-swiss-payment-slip-fpdf)

PHPackages © 2026

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