PHPackages                             oxmtecnologia/boleto - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oxmtecnologia/boleto

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oxmtecnologia/boleto
====================

Gerador de Boleto Sicredi

010PHP

Since Feb 8Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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

15

—

LowBetter than 3% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/158379761?v=4)[oxmtecnologia](/maintainers/oxmtecnologia)[@oxmtecnologia](https://github.com/oxmtecnologia)

---

Top Contributors

[![oxmtecnologia](https://avatars.githubusercontent.com/u/158379761?v=4)](https://github.com/oxmtecnologia "oxmtecnologia (5 commits)")

### Embed Badge

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

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

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

276169.2k](/packages/ozdemir-datatables)[phpactor/language-server-protocol

Langauge Server Protocol for PHP (transpiled)

12520.8k7](/packages/phpactor-language-server-protocol)[linnovate/openideal

OpenideaL - open source ideas and innovation management system

1262.8k2](/packages/linnovate-openideal)[blitsoftwares/laravel-states-and-cities

País, cidades e estados. Com código IBGE Brasil. Com migrations, models, seeder, routes, config e views. SQL de dumps disponiveis na pasta 'sql'.

151.1k](/packages/blitsoftwares-laravel-states-and-cities)

PHPackages © 2026

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