PHPackages                             matheushack/itauboleto - 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. [Payment Processing](/categories/payments)
4. /
5. matheushack/itauboleto

ActiveLibrary[Payment Processing](/categories/payments)

matheushack/itauboleto
======================

Boleto Itaú

1.0.6(8y ago)822.9k4MITPHPPHP &gt;=7.0

Since May 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/matheushack/itauboleto)[ Packagist](https://packagist.org/packages/matheushack/itauboleto)[ RSS](/packages/matheushack-itauboleto/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (9)Versions (8)Used By (0)

Boleto Itaú
===========

[](#boleto-itaú)

[![Latest Stable Version](https://camo.githubusercontent.com/9318776fff269d6823e3f82382717f58d5476d1db5e9b86594cb84d85e950d76/68747470733a2f2f706f7365722e707567782e6f72672f6d6174686575736861636b2f69746175626f6c65746f2f762f737461626c65)](https://packagist.org/packages/matheushack/itauboleto)[![Latest Unstable Version](https://camo.githubusercontent.com/6d4d8f529cc62d3bf983d3ff21d353162a98cb84ae36a9c4f61c348801591d49/68747470733a2f2f706f7365722e707567782e6f72672f6d6174686575736861636b2f69746175626f6c65746f2f762f756e737461626c65)](https://packagist.org/packages/matheushack/itauboleto)[![Total Downloads](https://camo.githubusercontent.com/e75bb804ad378a63a0e42ea297fe9025c2af6bfb99d3b72ae6ac075ba7d0b37d/68747470733a2f2f706f7365722e707567782e6f72672f6d6174686575736861636b2f69746175626f6c65746f2f646f776e6c6f616473)](https://packagist.org/packages/matheushack/itauboleto)[![License](https://camo.githubusercontent.com/5d783d92fad68363d6a57e3ca45bb6826a748a35fc4cb17ddec3391c074b00a0/68747470733a2f2f706f7365722e707567782e6f72672f6d6174686575736861636b2f69746175626f6c65746f2f6c6963656e7365)](https://packagist.org/packages/matheushack/itauboleto)

Projeto para integração com módulo de cobrança do banco Itaú.

Instalação
----------

[](#instalação)

### Composer

[](#composer)

```
"matheushack/itauboleto": "^1.0"

```

Como usar
---------

[](#como-usar)

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

use Carbon\Carbon;
use MatheusHack\ItauBoleto\Itau;
use MatheusHack\ItauBoleto\Constants\Layout;
use MatheusHack\ItauBoleto\Constants\Especie;
use MatheusHack\ItauBoleto\Constants\Retorno;
use MatheusHack\ItauBoleto\Requests\DadosComplementaresRequest;

// Obrigatório - Array com as informações necessárias para registro do boleto
$boleto = [
    'tipo_carteira_titulo' => 109,
    'nosso_numero' => 'XXXXXXX',
    'data_vencimento' => Carbon::now()->addDays(15)->format('Y-m-d'),
    'valor_cobrado' => '100,00',
    'especie' => Especie::DUPLICATA_MERCANTIL,
    'data_emissao' => Carbon::now()->format('Y-m-d'),
    'beneficiario' => [
        'documento_identificacao' => 'XXXXXXXXXXXXXX',
        'agencia' => 'XXXX',
        'conta' => 'XXXXXXX',
        'digito_conta' => 'X'
    ],
    'pagador' => [
        'documento_identificacao' => 'XXXXXXXXXXXXXX',
        'nome'=> 'Teste',
        'logradouro' => 'Rua teste',
        'cidade' => 'São Paulo',
        'uf' => 'SP',
        'cep' => 'XXXXXXXX'
    ]
];

// Opcional - Dados complementares para geração do layout do boleto
$dadosComplementares = new DadosComplementaresRequest();
$dadosComplementares->setInstrucoes([
    "- TEXTO DE INSTRUÇÃO BENEFICIÁRIO 1",
    "- TEXTO DE INSTRUÇÃO BENEFICIÁRIO 2",
    "- TEXTO DE INSTRUÇÃO BENEFICIÁRIO 3",
]);
$dadosComplementares->setDemonstrativo('TEXTO NO CAMPO DEMONSTRATIVO');

try {
    $itau = new Itau([
        'clientId' => 'XXXXXXXXXXXX',
        'clientSecret' => 'XXXXXXXXXXXX',
        'itauKey' => 'XXXXXXXXXXXX',
        'cnpj' => 'XXXXXXXXXXXX',
        'production' => false,
        'print' => Layout::HTML,
        'return' => Retorno::TO_OBJECT
    ]);

    $boletosRegistrados = $itau->registrar($boletos, $dadosComplementares);

    foreach($boletosRegistrados['data'] as $boletoResponse) {
        if ($stream = fopen($boletoResponse['file'], 'r')) {
            if ($printType == Layout::PDF)
                header('Content-type: application/pdf');

            echo stream_get_contents($stream);

            fclose($stream);
        }
    }

}catch(\Exception $e){
    dd($e->getMessage());
}
```

\##Exemplos

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~7 days

Total

7

Last Release

2927d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29952986?v=4)[Matheus Hack](/maintainers/MatheusHack)[@matheushack](https://github.com/matheushack)

### Embed Badge

![Health badge](/badges/matheushack-itauboleto/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

267880.7k3](/packages/laravel-cashier-paddle)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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