Download the PHP package flaviomoreir4/laravel-transfeera without Composer

On this page you can find all versions of the php package flaviomoreir4/laravel-transfeera. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-transfeera

# Laravel Transfeera **SDK Laravel para integração completa com a API Transfeera**
Pagamentos • Recebimentos • Pix Automático • Conta Certa • Hub de Contas • MED [![PHP](https://img.shields.io/badge/PHP-8.3%2B-blue)](https://php.net) [![Laravel](https://img.shields.io/badge/Laravel-12.x%2F13.x-FF2D20)](https://laravel.com) [![License](https://img.shields.io/github/license/flaviomoreir4/laravel-transfeera)](LICENSE) [![CI](https://github.com/flaviomoreir4/laravel-transfeera/actions/workflows/ci.yml/badge.svg)](https://github.com/flaviomoreir4/laravel-transfeera/actions/workflows/ci.yml) [![Tests](https://img.shields.io/badge/tests-292%2F292-brightgreen)](https://github.com/flaviomoreir4/laravel-transfeera/actions/workflows/ci.yml) [![PHPStan](https://img.shields.io/badge/PHPStan-level%208-brightgreen)](phpstan.neon) [![Rector](https://img.shields.io/badge/Rector-clean-brightgreen)](rector.php) [![Pint](https://img.shields.io/badge/Pint-PSR%2012-brightgreen)](pint.json)

Índice


Visão Geral

O Laravel Transfeera SDK é um pacote Laravel nativo que encapsula toda a API da Transfeera — plataforma de pagamentos e recebimentos via Pix, boletos e transferências.

Diferenciais:


Instalação

O Service Provider é registrado automaticamente via auto-discovery do Laravel.

Publique a configuração (opcional):


Configuração

Adicione ao seu .env:

Todas as chaves têm defaults seguros (sandbox, sem credenciais). O SDK valida a configuração no boot e emite warnings no log se algo estiver inconsistente.

⚠️ Produção: O mTLS é obrigatório para as APIs de Pagamentos e Conta Certa em produção. Configure TRANSFEERA_MTLS_CERT_PATH e TRANSFEERA_MTLS_KEY_PATH apontando para seus certificados .pem.


Uso Rápido

Via Facade

Via Injeção de Dependência


Recursos por Domínio

Pagamentos

Resource Métodos Response DTO
batches() create(), list(), get(), update(), delete() BatchResponseDTO
transfers() create(), get(), update(), delete() TransferResponseDTO
billets() create(), get(), list(), update(), delete() BilletResponseDTO
banks() list() BankResponseDTO[]
statement() getBalance(), getTransactions() StatementResponseDTO / array
recurrences() create(), get(), list(), update(), delete() RecurrenceResponseDTO
pix() consultKey(), parseEMV() PixResponseDTO / array

Recebimentos

Resource Métodos Response DTO
pixKeys() create(), list(), get(), update(), delete() PixKeyResponseDTO[]
pixQrCodes() create(), list(), get() PixQrCodeResponseDTO
pixCashIn() list(), get() PixCashInResponseDTO[]
charges() create(), list(), get(), update(), delete(), downloadPdfByChargeId() ChargeResponseDTO
paymentLinks() create(), list(), get(), delete() PaymentLinkResponseDTO

Pix Automático

Resource Métodos Response DTO
pixAutomaticoAuthorizations() create(), list(), get(), revoke() AuthorizationResponseDTO
pixAutomaticoPaymentIntents() create(), list(), get(), cancel() PaymentIntentResponseDTO

Conta Certa / Validações

Resource Métodos Response DTO
contaCertaValidations() validate(), get(), list(), listBanks() ValidationResponseDTO / array
contaCertaBanks() list() BankResponseDTO[]

Hub de Contas

Resource Métodos Response DTO
accounts() create(), list(), get(), update(), delete() AccountResponseDTO

MED / Infrações

Resource Métodos Response DTO
infractions() analyze(), analyzeBatch(), list(), get(), return(), returnBatch() InfractionResponseDTO / array

Webhooks

O SDK expõe 3 endpoints para receber notificações da Transfeera:

Rota Domínio Controller
POST /webhooks/transfeera/payments Pagamentos WebhookController@payments
POST /webhooks/transfeera/receivables Recebimentos WebhookController@receivables
POST /webhooks/transfeera/conta-certa Conta Certa WebhookController@contaCerta

Validação de assinatura: HMAC-SHA256, automática. Configure os secrets no .env.

Publicar rotas (opcional):

📖 Consulte docs/webhooks.md para detalhes completos.


Tratamento de Erros

Todas as exceptions estendem TransfeeraException:

📖 Consulte docs/exceptions.md para a hierarquia completa.


Autenticação & mTLS

O SDK gerencia o ciclo de vida do token OAuth2 client_credentials automaticamente:

mTLS em produção é aplicado automaticamente nas APIs de Pagamentos e Conta Certa. Configure:


Multi-tenancy (Hub de Contas)

Todos os Resources aceitam $accountId opcional:

O TokenManager adiciona scope=account_id:{accountId} ao token, garantindo escopo correto.


Comandos Artisan

Comando Descrição
php artisan transfeera:install Publica configuração e exibe instruções
php artisan transfeera:check Valida credenciais, conectividade e mTLS
php artisan transfeera:check --silent Retorna apenas o código de saída (CI/CD)
php artisan transfeera:debug Diagnóstico completo do SDK
php artisan transfeera:cache-warm Pré-aquece o cache do token OAuth

Mais detalhes em docs/comandos-artisan.md.


Testes

O CI roda em matrix PHP 8.3/8.4 × Laravel 12/13.


Documentação

Documento Conteúdo
Pagamentos Lotes, transferências, boletos, saldo, recorrências
Recebimentos Chaves Pix, QR Codes, Cash-in, cobranças, links
Pix Automático Autorizações, Payment Intents, fluxo completo
Conta Certa Validações, bancos suportados
Hub de Contas Contas digitais, onboarding, tenancy
MED / Infrações Infrações, análise individual/lote, devolução
Webhooks Rotas, secrets, validação HMAC, listeners
Exceptions Hierarquia completa, catch, métodos úteis
Middlewares Config, logging, métricas, Prometheus
Erros Códigos HTTP, handlers, retry
Fila Jobs base, backoff inteligente, Horizon/Pulse
Comandos Artisan Instalação, check, debug, cache-warm
Primeiro Pagamento Passo a passo inicial
Primeiro Recebimento Passo a passo inicial
Changelog Histórico de versões (Keep a Changelog)
Roadmap Planejamento de versões futuras

Links oficiais da Transfeera:


Contribuição

Veja CONTRIBUTING.md para detalhes.


Licença

MIT © LICENSE para detalhes.


All versions of laravel-transfeera with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3 || ^8.4
illuminate/support Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/contracts Version ^12.0 || ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flaviomoreir4/laravel-transfeera contains the following files

Loading the files please wait ...