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

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

We built this client because of problems with the existing SDK provided by Avalara:

  1. Lack of support for PHP8.
  2. No transformation of responses to PHP models/objects.
  3. 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/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
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|^12.0|^13.0 MIT
0.3.5 ^8.3 ^11.0|^12.0|^13.0 MIT
0.3.4 ^8.3 ^11.0|^12.0|^13.0 MIT
0.3.3 ^8.3 ^11.0|^12.0 MIT
0.3.2 ^8.3 ^11.0|^12.0 MIT