jwohlfert23/laravel-avalara
This is my package laravel-avalara
15,474
| Install | |
|---|---|
composer require jwohlfert23/laravel-avalara |
|
| Latest Version: | 0.4.0 |
| PHP: | ^8.3 |
| Laravel: | 11 · 12 · 13 |
| Older releases: | 9 · 10 |
| License: | MIT |
| Last Updated: | Sep 8, 2026 |
| Links: | GitHub · Packagist |
Maintainer: jwohlfert23
Simple Avalara Client for Laravel
We built this client because of problems with the existing SDK provided by Avalara:
- Lack of support for PHP8.
- No transformation of responses to PHP models/objects.
- Avalara only has a 99.5% SLA, and we thought built-in retries for certain endpoints would be helpful.
Installation
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"
Usage
$transaction = new CreateTransaction();
$transaction->date = now();
$transaction->type = AvalaraDocType::SALES_ORDER;
$transaction->customerCode = 'jack@gmail.com';
$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();
License
The MIT License (MIT). Please see License File for more information.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
641,106,524
9,700
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
418,291,778
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
399,241,428
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.4.0 | ^8.3 | ^11.0| | MIT | |
| 0.3.5 | ^8.3 | ^11.0| | MIT | |
| 0.3.4 | ^8.3 | ^11.0| | MIT | |
| 0.3.3 | ^8.3 | ^11.0| | MIT | |
| 0.3.2 | ^8.3 | ^11.0| | MIT | |
| 0.3.1 | ^8.3 | ^11.0| | MIT | |
| 0.3.0 | ^8.3 | ^11.0| | MIT | |
| 0.2.6 | ^8.1 | ^9.0| | MIT | |
| v0.2.5 | ^8.1 | ^9.0| | MIT | |
| v0.2.4 | ^8.1 | ^9.0| | MIT | |
| v0.2.3 | ^8.1 | ^9.0| | MIT | |
| v0.2.2 | ^8.1 | ^9.0| | MIT | |
| v0.2.1 | ^8.1 | ^9.0| | MIT | |
| v0.2.0 | ^8.1 | ^9.0| | MIT | |
| v0.1.7 | ^8.1 | ^9.0 | MIT | |
| 0.1.6 | ^8.1 | ^9.0 | MIT | |
| 0.1.5 | ^8.1 | ^9.0 | MIT | |
| 0.1.4 | ^8.1 | ^9.0 | MIT | |
| 0.1.3 | ^8.1 | ^9.0 | MIT | |
| 0.1.2 | ^8.1 | ^9.0 | MIT | |
| 0.1.1 | ^8.1 | ^9.0 | MIT | |
| 0.1.0 | ^8.1 | ^9.0 | MIT | |
| 0.0.6 | ^8.1 | ^9.0 | MIT | |
| 0.0.5 | ^8.1 | ^9.0 | MIT | |
| 0.0.4 | ^8.1 | ^9.0 | MIT | |
| 0.0.3 | ^8.1 | ^9.0 | MIT | |
| 0.0.2 | ^8.1 | ^9.0 | MIT | |
| 0.0.1 | ^8.1 | ^9.0 | MIT |