Downloads
Stars
Version
We built this client because of problems with the existing SDK provided by Avalara:
You can install the package via composer:
composer require jwohlfert23/laravel-avalara
You should publish the config file:
php artisan vendor:publish --tag="avalara-config"
$transaction = new CreateTransaction();
$transaction->date = now();
$transaction->type = AvalaraDocType::SALES_ORDER;
$transaction->customerCode = '[email protected]';
$transaction->addresses['ShipFrom'] = new \App\Services\Avalara\Models\AddressModel();
$transaction->addresses['ShipTo'] = new \App\Services\Avalara\Models\AddressModel();
$transaction->lines[] = new CreateLineItem(
number: 0,
amount: 50.00,
quantity: 2,
taxCode: 'P0000000'
);
return AvalaraClient::createTransaction($transaction);
// or
return $transaction->create();
The MIT License (MIT). Please see License File for more information.