PHPackages                             brunojsbr/arvinpay-sdk-php - 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. brunojsbr/arvinpay-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

brunojsbr/arvinpay-sdk-php
==========================

SDK oficial da ArvinPay para PHP

1.0.5(1y ago)03MITPHPPHP ^5.6|^7.0|^8.0

Since Feb 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/brunojsbr/arvinpay-sdk-php)[ Packagist](https://packagist.org/packages/brunojsbr/arvinpay-sdk-php)[ RSS](/packages/brunojsbr-arvinpay-sdk-php/feed)WikiDiscussions main Synced today

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

ArvinPay SDK PHP
================

[](#arvinpay-sdk-php)

SDK oficial da ArvinPay para integração com PHP.

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

[](#instalação)

```
composer require brunojsbr/arvinpay-sdk-php
```

Uso
---

[](#uso)

```
use ArvinPay\SDK\Client;

// Inicializar o cliente
$client = new Client([
    'client_secret' => 'seu_client_secret',
    'base_url' => 'https://api.arvinpay.com/v1' // opcional
]);

// Criar uma cobrança PIX
$charge = $client->pix->create([
    'amount' => 100.00,
    'email' => 'cliente@email.com',
    'quantity' => 1,
    'invoice_no' => 'INV-123',
    'due_date' => '2024-12-31',
    'item_name' => 'Produto Teste',
    'document' => '123.456.789-00',
    'client' => 'Nome do Cliente'
]);

// A resposta incluirá:
// - reference: Referência única da cobrança
// - total: Valor total
// - txid: ID da transação PIX
// - qr_code_data: String para gerar o QR Code
// - copy_paste: Código PIX Copia e Cola

// Exemplo de resposta:
// {
//     "reference": "PIX-123ABC",
//     "total": "100.00",
//     "txid": "9d36b84f-c70b-4e21-b49d-4444d98a5222",
//     "qr_code_data": "00020101021226890014br.gov.bcb.pix...",
//     "copy_paste": "00020101021226890014br.gov.bcb.pix..."
// }

// Consultar uma cobrança
$status = $client->pix->get('PIX-123ABC');

// Cancelar uma cobrança
$cancel = $client->pix->cancel('PIX-123ABC');

// Criar um saque PIX
$withdraw = $client->pixout->create([
    'amount' => 100.00,
    'pixkey' => 'cliente@email.com',
    'keytype' => 'email',
    'description' => 'Saque PIX'
]);

// Consultar um saque
$status = $client->pixout->get('WD-123ABC');

// Cancelar um saque
$cancel = $client->pixout->cancel('WD-123ABC');
```

Gerando QR Code
---------------

[](#gerando-qr-code)

O SDK retorna os dados necessários para gerar o QR Code (`qr_code_data`), mas não gera a imagem diretamente. Você pode usar qualquer biblioteca de sua preferência para gerar o QR Code. Alguns exemplos:

### Usando endroid/qr-code

[](#usando-endroidqr-code)

```
use Endroid\QrCode\QrCode;
use Endroid\QrCode\Writer\PngWriter;

$writer = new PngWriter();
$qrCode = QrCode::create($charge['qr_code_data']);
$result = $writer->write($qrCode);

// Salvar imagem
$result->saveToFile('qrcode.png');

// Ou retornar como base64
$dataUri = $result->getDataUri();
```

### Usando chillerlan/php-qrcode

[](#usando-chillerlanphp-qrcode)

```
use chillerlan\QRCode\QRCode;

$qrcode = (new QRCode)->render($charge['qr_code_data']);
```

### Usando bacon/bacon-qr-code

[](#usando-baconbacon-qr-code)

```
use BaconQrCode\Renderer\ImageRenderer;
use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;

$renderer = new ImageRenderer(
    new RendererStyle(300),
    new ImagickImageBackEnd()
);

$writer = new Writer($renderer);
$qrcode = base64_encode($writer->writeString($charge['qr_code_data']));
```

Documentação
------------

[](#documentação)

Para mais informações sobre os endpoints e parâmetros disponíveis, consulte a [documentação oficial](https://api.arvinpay.com/docs).

Requisitos
----------

[](#requisitos)

- PHP 7.2 ou superior
- Extensão JSON
- Guzzle HTTP 7.0 ou superior

Licença
-------

[](#licença)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

515d ago

PHP version history (3 changes)v1.0.2PHP &gt;=7.4

1.0.4PHP ^7.2|^8.0

1.0.5PHP ^5.6|^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d004809cbc5b0aa4e717e3d40ed0de772188dcded188b76020cfe71badc0a54?d=identicon)[bruno\_dev\_br](/maintainers/bruno_dev_br)

---

Top Contributors

[![brunojsbr](https://avatars.githubusercontent.com/u/132640237?v=4)](https://github.com/brunojsbr "brunojsbr (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brunojsbr-arvinpay-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/brunojsbr-arvinpay-sdk-php/health.svg)](https://phpackages.com/packages/brunojsbr-arvinpay-sdk-php)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.5M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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