PHPackages                             lumensistemas/laravel-inter - 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. [API Development](/categories/api)
4. /
5. lumensistemas/laravel-inter

ActiveLibrary[API Development](/categories/api)

lumensistemas/laravel-inter
===========================

A Laravel package for integrating with Banco Inter API.

1.1.0(1mo ago)0150↓100%[1 PRs](https://github.com/lumensistemas/laravel-inter/pulls)MITPHPPHP ^8.4|^8.5CI passing

Since Apr 10Pushed 1mo agoCompare

[ Source](https://github.com/lumensistemas/laravel-inter)[ Packagist](https://packagist.org/packages/lumensistemas/laravel-inter)[ Docs](https://github.com/lumensistemas/laravel-inter)[ GitHub Sponsors](https://github.com/lumensistemas)[ RSS](/packages/lumensistemas-laravel-inter/feed)WikiDiscussions main Synced 1w ago

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

Laravel Inter
=============

[](#laravel-inter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/34b0ae0af458deb83eb013dbc7cef294b7ad47d81710be82d3c08a0c392aaf01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756d656e73697374656d61732f6c61726176656c2d696e7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lumensistemas/laravel-inter)[![Tests](https://camo.githubusercontent.com/2846bbc8031606ec49a372f6a6a2dcd437acb866f7361e58e82124f60fdd9755/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d656e73697374656d61732f6c61726176656c2d696e7465722f7061636b6167652d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/lumensistemas/laravel-inter/actions/workflows/package-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/f7d5b882fb27a6604d1ed3a79489cf109c0aad7ff7b0c52c3e61843b6e537a08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756d656e73697374656d61732f6c61726176656c2d696e7465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lumensistemas/laravel-inter)

A typed, testable Laravel API client for [Banco Inter](https://developers.inter.co/). Supports billing (cobranca), multi-tenancy, and OAuth 2.0 + mTLS authentication.

**Requirements:** PHP 8.4+, Laravel 12+

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lumensistemas/laravel-inter
```

Publish the configuration file:

```
php artisan vendor:publish --tag=inter-config
```

Add your credentials to `.env`:

```
INTER_CLIENT_ID=your-client-id
INTER_CLIENT_SECRET=your-client-secret
INTER_CERTIFICATE=/path/to/certificate.crt
INTER_PRIVATE_KEY=/path/to/private.key
INTER_ENVIRONMENT=sandbox
INTER_CONTA_CORRENTE=
```

Usage
-----

[](#usage)

### Billing (Cobranca)

[](#billing-cobranca)

```
use LumenSistemas\Inter\Facades\Inter;

// Issue a new billing (boleto + Pix QR code)
$response = Inter::billing()->create(
    seuNumero: 'INV-001',
    valorNominal: 150.00,
    dataVencimento: '2026-05-01',
    numDiasAgenda: 30,
    pagador: [
        'cpfCnpj' => '12345678901',
        'tipoPessoa' => 'FISICA',
        'nome' => 'John Doe',
        'endereco' => 'Rua Example, 123',
        'cidade' => 'Curitiba',
        'uf' => 'PR',
        'cep' => '80000000',
    ],
);
// $response->data['codigoSolicitacao']

// Retrieve a billing
$billing = Inter::billing()->find('abc-123-def');
// $billing->data['cobranca'], $billing->data['boleto'], $billing->data['pix']

// List billings (paginated)
$page = Inter::billing()->list(
    dataInicial: '2026-04-01',
    dataFinal: '2026-04-30',
    situacao: 'A_RECEBER',
    tipoOrdenacao: 'DESC',
);

// Iterate through all pages automatically
foreach (Inter::billing()->all(['dataInicial' => '2026-04-01', 'dataFinal' => '2026-04-30']) as $item) {
    // ...
}

// Get billing PDF (base64)
$pdf = Inter::billing()->pdf('abc-123-def');

// Cancel a billing
Inter::billing()->cancel('abc-123-def', 'APEDIDODOCLIENTE');

// Summary grouped by status
$summary = Inter::billing()->summary(
    dataInicial: '2026-04-01',
    dataFinal: '2026-04-30',
);
```

### Billing Webhooks

[](#billing-webhooks)

```
use LumenSistemas\Inter\Facades\Inter;

// Register a webhook URL
Inter::billingWebhook()->create('https://example.com/webhooks/inter/billing');

// Retrieve current webhook config
$webhook = Inter::billingWebhook()->retrieve();
// $webhook->data['webhookUrl'], $webhook->data['criacao']

// Delete the webhook
Inter::billingWebhook()->delete();

// Retrieve callback delivery history
$callbacks = Inter::billingWebhook()->callbacks(
    dataHoraInicio: '2026-04-01T00:00:00Z',
    dataHoraFim: '2026-04-30T23:59:59Z',
);
```

### Multi-Tenancy

[](#multi-tenancy)

Each tenant can use its own credentials:

```
$tenant = Inter::client(
    clientId: $tenant->inter_client_id,
    clientSecret: $tenant->inter_client_secret,
    certificate: $tenant->inter_certificate_path,
    privateKey: $tenant->inter_private_key_path,
);

$tenant->billing()->create(...);
```

Testing
-------

[](#testing)

```
composer test                # Unit + Feature tests
composer test:integration    # Integration tests (requires .env credentials)
```

### Webhook Development

[](#webhook-development)

Start a local webhook receiver and register it with Inter's sandbox:

```
composer webhook:serve       # Start receiver on port 8008
composer webhook:register    # Register TEST_EXPOSE_URL from .env with Inter
```

Use [Expose](https://expose.dev) or ngrok to tunnel the local server to a public URL.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/lumensistemas/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lucas Vasconcelos](https://github.com/lucasvscn)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

57d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfdf6591a8b2d844569545878fba113e9c8de3d9b9d48f5b25637c6f0353ffbd?d=identicon)[lucasvscn](/maintainers/lucasvscn)

---

Top Contributors

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

---

Tags

laravelapi integrationbanco interlumensistemaslaravel-inter

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lumensistemas-laravel-inter/health.svg)

```
[![Health](https://phpackages.com/badges/lumensistemas-laravel-inter/health.svg)](https://phpackages.com/packages/lumensistemas-laravel-inter)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[resend/resend-laravel

Resend for Laravel

1212.2M8](/packages/resend-resend-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53286.5k](/packages/essa-api-tool-kit)[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)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3175.9k](/packages/joggapp-laravel-aws-sns)

PHPackages © 2026

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