PHP code example of sistem_atc / asaas-laravel

1. Go to this page and download the library: Download sistem_atc/asaas-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sistem_atc / asaas-laravel example snippets


use SistemAtc\Asaas\Facades\Asaas;
use SistemAtc\Asaas\DTO\Request\Customer\CustomerRequestDTO;

$customer = Asaas::customer()->createNewCustomer(
    CustomerRequestDTO::fromArray([
        'name' => 'Joao da Silva',
        'email' => '[email protected]',
        'cpfCnpj' => '12345678900',
        'mobilePhone' => '11999999999',
    ])
);
bash
php artisan vendor:publish --provider="SistemAtc\Asaas\AsaasServiceProvider" --tag=asaas-config