PHPackages                             cristyanhenrich/asaas-sdk - 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. cristyanhenrich/asaas-sdk

ActiveLibrary[API Development](/categories/api)

cristyanhenrich/asaas-sdk
=========================

Library to connect assas api

v1.1.4(1y ago)0521↓50%1MITPHPPHP ^8.2

Since Jan 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/CristyanHenrich/asaas-sdk)[ Packagist](https://packagist.org/packages/cristyanhenrich/asaas-sdk)[ RSS](/packages/cristyanhenrich-asaas-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

Asaas SDK for Laravel
=====================

[](#asaas-sdk-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/91116fa7561d7fce08f7e5dd73186b1c185cf36887b182083bcce52c27bb1e8f/68747470733a2f2f706f7365722e707567782e6f72672f637269737479616e68656e726963682f61736161732d73646b2f762f737461626c65)](https://packagist.org/packages/cristyanhenrich/asaas-sdk)[![Total Downloads](https://camo.githubusercontent.com/8865fd2e4b6f1a48a1ebd2057a0cf9c0029455728ca8064c22de614dc6788eb5/68747470733a2f2f706f7365722e707567782e6f72672f637269737479616e68656e726963682f61736161732d73646b2f646f776e6c6f616473)](https://packagist.org/packages/cristyanhenrich/asaas-sdk)[![License](https://camo.githubusercontent.com/d0c8bbf6b28fbce64a943934d9fad35fbcf87a07f04586e43b9c3b28ccb60ccf/68747470733a2f2f706f7365722e707567782e6f72672f637269737479616e68656e726963682f61736161732d73646b2f6c6963656e7365)](https://packagist.org/packages/cristyanhenrich/asaas-sdk)

Este pacote fornece uma integração com a API do Asaas para Laravel, permitindo o gerenciamento de clientes, cobranças, assinaturas e Pix.

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

[](#instalação)

### Requisitos

[](#requisitos)

- PHP 8.2 ou superior
- Laravel 9 ou superior
- GuzzleHTTP 7.4 ou superior

### Passos

[](#passos)

1. Instale o pacote via Composer:

    ```
    composer require cristyanhenrich/asaas-sdk
    ```
2. Publique as configurações:

    ```
    php artisan vendor:publish --tag=asaas-config
    ```
3. Configure as variáveis de ambiente no arquivo `.env`:

    ```
    ASAAS_PRODUCTION=true
    ASAAS_API_KEY=your_api_key_here
    ```

Uso
---

[](#uso)

### Configuração Inicial

[](#configuração-inicial)

Certifique-se de configurar corretamente as variáveis no arquivo `.env`. O pacote automaticamente detecta se deve usar o ambiente de produção ou sandbox com base no valor de `ASAAS_PRODUCTION`.

### Exemplo de Uso

[](#exemplo-de-uso)

#### Clientes

[](#clientes)

- Listar clientes:

    ```
    use Asaas;

    $clientes = Asaas::listCustomers(['name' => 'Cristyan Henrich']);
    ```
- Criar um cliente:

    ```
    $cliente = Asaas::createCustomer([
        'name' => 'Cristyan Henrich',
        'cpfCnpj' => '12345678900',
        'email' => 'cristyanhenrich16@gmail.com',
    ]);
    ```

#### Cobranças

[](#cobranças)

- Criar uma cobrança: ```
    $cobranca = Asaas::createCharge([
        'customer' => 'customer_id',
        'billingType' => 'BOLETO',
        'value' => 150.00,
        'dueDate' => '2025-01-31',
    ]);
    ```

#### Assinaturas

[](#assinaturas)

- Criar uma assinatura: ```
    $assinatura = Asaas::createSubscription([
        'customer' => 'customer_id',
        'billingType' => 'CREDIT_CARD',
        'value' => 200.00,
        'nextDueDate' => '2025-02-01',
    ]);
    ```

#### Pix

[](#pix)

- Listar chaves Pix: ```
    $pixKeys = Asaas::listKeys();
    ```

Estrutura de Configuração
-------------------------

[](#estrutura-de-configuração)

Após publicar o arquivo de configuração, você pode encontrá-lo em `config/asaas.php`. Aqui estão as principais opções:

```
return [
    'production' => env('ASAAS_PRODUCTION', false),
    'api_url_production' => env('ASAAS_API_PRODUCTION', 'https://api.asaas.com/'),
    'api_url_sandbox' => env('ASAAS_API_SANDBOX', 'https://sandbox.asaas.com/api/v3/'),
    'api_key' => env('ASAAS_API_KEY', ''),
];
```

Registro Automático
-------------------

[](#registro-automático)

Este pacote utiliza o `ServiceProvider` do Laravel para registrar serviços e aliases automaticamente.

Contribuição
------------

[](#contribuição)

Contribuições são bem-vindas! Sinta-se à vontade para abrir uma issue ou enviar um pull request.

Licença
-------

[](#licença)

Este pacote é licenciado sob a [MIT License](LICENSE).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance47

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Total

6

Last Release

400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5a0430ea0d6d1568489d3527feb418a6d340556e5fbc5ca0ae7fcc685dd03cb?d=identicon)[Cristyan Henrich](/maintainers/Cristyan%20Henrich)

---

Top Contributors

[![CristyanHenrich](https://avatars.githubusercontent.com/u/80925110?v=4)](https://github.com/CristyanHenrich "CristyanHenrich (6 commits)")

### Embed Badge

![Health badge](/badges/cristyanhenrich-asaas-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/cristyanhenrich-asaas-sdk/health.svg)](https://phpackages.com/packages/cristyanhenrich-asaas-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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