PHPackages                             oscar-team/avatax-laravel - 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. oscar-team/avatax-laravel

ActiveLibrary[API Development](/categories/api)

oscar-team/avatax-laravel
=========================

A Laravel package for Avalara AvaTax SDK integration

v1.5(4mo ago)02.6k↑194.6%MITPHPPHP &gt;=7.3CI passing

Since Jun 7Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/oscar-team/avatax-laravel)[ Packagist](https://packagist.org/packages/oscar-team/avatax-laravel)[ RSS](/packages/oscar-team-avatax-laravel/feed)WikiDiscussions main Synced 3d ago

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

Laravel AvaTax Integration
==========================

[](#laravel-avatax-integration)

This package provides an integration with Avalara's AvaTax API for Laravel applications. It includes services for handling transactions, tax codes, tax rules, and more.

Installation
------------

[](#installation)

### Step 1: Install the Package

[](#step-1-install-the-package)

You can install the package via Composer:

```
composer require oscar-team/avatax-laravel
```

### Step 2: Publish the Configuration

[](#step-2-publish-the-configuration)

Publish the package configuration using the following Artisan command:

```
php artisan vendor:publish --provider="OscarTeam\AvaTax\AvaTaxServiceProvider"
```

### Step 3: Configure AvaTax

[](#step-3-configure-avatax)

Add your Avalara credentials to the .env file:

```
AVATAX_APP_NAME=demo
AVATAX_APP_VERSION=1
AVATAX_MACHINE_NAME=localhost
AVATAX_ACCOUNT_ID=your_account_id
AVATAX_LICENSE_KEY=your_license_key
AVATAX_ENVIRONMENT=sandbox # or production
```

Usage
-----

[](#usage)

### Example 1: Creating a Simple Transaction

[](#example-1-creating-a-simple-transaction)

```
use OscarTeam\AvaTax\Facades\AvaTax;
use Avalara\DocumentType;

// Create a new transaction
$transaction = AvaTax::createTransaction([
    'companyCode' => 'DEFAULT',
    'type' => DocumentType::C_SALESINVOICE,
    'customerCode' => 'ABC',
    'addresses' => [
        'SingleLocation' => [
            'line1' => '123 Main Street',
            'city' => 'Irvine',
            'region' => 'CA',
            'postalCode' => '92615',
            'country' => 'US'
        ]
    ],
    'lines' => [
        [
            'amount' => 100.0,
            'quantity' => 1,
            'itemCode' => 'P0000000'
        ]
    ]
]);

echo '' . json_encode($transaction, JSON_PRETTY_PRINT) . '';
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance75

Regular maintenance activity

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~123 days

Recently: every ~154 days

Total

6

Last Release

138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db2675a9674fa6c8a957211599bdc1af7597506f161b47eb64351c462c2a22eb?d=identicon)[moiz2050](/maintainers/moiz2050)

---

Top Contributors

[![adnedelcu](https://avatars.githubusercontent.com/u/1168310?v=4)](https://github.com/adnedelcu "adnedelcu (1 commits)")[![moiz2050](https://avatars.githubusercontent.com/u/820400?v=4)](https://github.com/moiz2050 "moiz2050 (1 commits)")

### Embed Badge

![Health badge](/badges/oscar-team-avatax-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/oscar-team-avatax-laravel/health.svg)](https://phpackages.com/packages/oscar-team-avatax-laravel)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

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