Download the PHP package michaeld555/santander-sdk without Composer

On this page you can find all versions of the php package michaeld555/santander-sdk. 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 santander-sdk

Santander PHP/Laravel SDK

SDK para integracao com APIs do Santander em projetos Laravel e PHP puro.

Versao

1.0.0

Sumario

Escopo

Esta SDK cobre os fluxos principais das colecoes em endpoints/:

Cobertura de Endpoints

Dominio Base endpoint Acesso via SDK Metodos
Auth /auth/oauth/v2/token interno (SantanderAuth) renovacao automatica de token
Workspaces /management_payments_partners/v1/workspaces Santander::workspaces() createWorkspace, createWorkspaceValidated, listWorkspaces, getWorkspace, updateWorkspace, deleteWorkspace
Pix Payments /management_payments_partners/v1/workspaces/:workspaceid/pix_payments Santander::pix() transferPix, createPayment, confirmPayment, getPayment, listPayments
Bank Slip Payments /management_payments_partners/v1/workspaces/:workspaceid/bank_slip_payments Santander::bankSlips() createPayment, confirmPayment, getPayment, listPayments, listAvailableBankSlips
Barcode Payments /management_payments_partners/v1/workspaces/:workspaceid/barcode_payments Santander::barcodes() createPayment, confirmPayment, getPayment, listPayments
Vehicle Taxes /management_payments_partners/v1/workspaces/:workspaceid/vehicle_taxes_payments Santander::vehicleTaxes() listAvailableVehicleTaxes, createPayment, confirmPayment, getPayment, listPayments
Taxes by Fields /management_payments_partners/v1/workspaces/:workspaceid/taxes_by_fields_payments Santander::taxesByFields() createPayment, confirmPayment, getPayment, listPayments
Contas /bank_account_information/v1/banks/:bank_tax_id Santander::accounts() listAccounts, getBalance, getStatement
Comprovantes /consult_payment_receipts/v1/payment_receipts Santander::receipts() paymentList, paymentListIterByPages, createReceipt, getReceipt, receiptCreationHistory
Pix Automatico - Location /api/v1/locrec Santander::pixAutomatic() createLocation, listLocations, getLocation, unbindLocation
Pix Automatico - Recorrencia /api/v1/rec Santander::pixAutomatic() createRecurrence, listRecurrences, getRecurrence, updateRecurrence, cancelRecurrence
Pix Automatico - Solicitacao de confirmacao /api/v1/solicrec Santander::pixAutomatic() createConfirmationRequest, getConfirmationRequest, reviewConfirmationRequest
Pix Automatico - Cobranca recorrente /api/v1/cobr Santander::pixAutomatic() createRecurringCharge, reviewRecurringCharge, getRecurringCharge, listRecurringCharges, requestRecurringChargeRetry
Pix Automatico - Webhooks /api/v1/webhookrec e /api/v1/webhookcobr Santander::pixAutomatic() configure*Webhook, get*Webhook, delete*Webhook

Instalacao

Publicar configuracao (Laravel):

Configuracao

Variaveis de ambiente

Tabela de configuracao

Variavel Obrigatoria Default Descricao
SANTANDER_CLIENT_ID Sim - Client ID da aplicacao no Santander
SANTANDER_CLIENT_SECRET Sim - Client secret da aplicacao no Santander
SANTANDER_CERT Sim na maioria dos cenarios - Certificado client TLS. Pode ser string (caminho) ou array compativel com Guzzle
SANTANDER_BASE_URL Sim - URL base da API (trust-open ou trust-sandbox)
SANTANDER_WORKSPACE_ID Nao vazio Se vazio, SDK tenta descobrir o primeiro workspace PAYMENTS ativo
SANTANDER_BANK_TAX_ID Nao 90400888000142 CNPJ base usado pelos endpoints de contas
SANTANDER_LOG_LEVEL Nao ERROR ERROR ou ALL
SANTANDER_TIMEOUT Nao 60 Timeout HTTP em segundos

URLs usuais

Observacoes importantes

Arquitetura da SDK

Camadas

Fluxo de request

  1. O modulo chama SantanderApiClient com endpoint + payload
  2. O client injeta Authorization e X-Application-Key
  3. O client resolve placeholders de URL
  4. O Santander responde
  5. A SDK retorna array normalizado ou lanca excecao especifica

Quickstart Laravel

Quickstart PHP puro

Referencia por Modulo

1) Pix (Santander::pix())

Fluxo simplificado: transferPix

Fluxo detalhado (baixo nivel)

2) Comprovantes (Santander::receipts())

Paginacao lazy por generator:

3) Workspaces (Santander::workspaces())

4) Contas (Santander::accounts())

Sobrescrevendo bank_tax_id por chamada:

5) Bank Slips (Santander::bankSlips())

6) Barcode (Santander::barcodes())

7) Vehicle Taxes (Santander::vehicleTaxes())

8) Taxes by Fields (Santander::taxesByFields())

9) Pix Automatico (Santander::pixAutomatic())

Location

Recorrencia

Solicitacao de confirmacao

Cobranca recorrente

Webhooks

Erros e Tratamento

Excecoes da SDK

Exemplo de captura

Observacao sobre transferPix

transferPix e um helper de alto nivel. Para fluxos de controle total (idempotencia propria, reprocesso customizado, auditoria por etapa), prefira createPayment + confirmPayment + getPayment.

Logs e Observabilidade

Configurar SANTANDER_LOG_LEVEL:

Quando habilitado, o log inclui:

Testes

Rodar suite atual:

Notas da versao 1.0.0

Documentacao oficial Santander

Licenca

MIT


All versions of santander-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.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 michaeld555/santander-sdk contains the following files

Loading the files please wait ...