PHPackages                             karen\_he/avataxclient - 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. karen\_he/avataxclient

ActiveLibrary[API Development](/categories/api)

karen\_he/avataxclient
======================

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API. Updated to use Guzzle 7 for Laravel compatibility.

20.14(4y ago)03.4k↓30%1Apache-2.0PHPPHP &gt;=5.5.9

Since Feb 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Karen-He95/AvaTax-REST-V2-PHP-SDK)[ Packagist](https://packagist.org/packages/karen_he/avataxclient)[ Docs](https://developer.avalara.com/)[ RSS](/packages/karen-he-avataxclient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (44)Used By (1)

AvaTax-REST-V2-PHP-SDK
======================

[](#avatax-rest-v2-php-sdk)

This GitHub repository is the PHP SDK for Avalara's world-class tax service, AvaTax. It uses the AvaTax REST v2 API, which is a fully REST implementation and provides a single client for all AvaTax functionality. For more information about AvaTax REST v2, please visit [Avalara's Developer Network](http://developer.avalara.com/) or view the [online Swagger documentation](https://sandbox-rest.avatax.com/swagger/ui/index.html).

Build Status
============

[](#build-status)

Packagist

[![Packagist](https://camo.githubusercontent.com/f70076a88892f35c49aac7bef61a66f02f00dc4d5f24c4f159e65d803f4c2d55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6176616c6172612f617661746178636c69656e742e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/avalara/avataxclient)

Travis-CI

[![Travis](https://camo.githubusercontent.com/36198faf83d8bca9b53fa89b66efbf7dd6bc66526fa2bd18bc7f96460cc00fff/68747470733a2f2f6170692e7472617669732d63692e6f72672f6176616465762f4176615461782d524553542d56322d5048502d53444b2e7376673f6272616e63683d6d6173746572267374796c653d706c6173746963)](https://travis-ci.org/avadev/AvaTax-REST-V2-PHP-SDK)

Installing the PHP SDK
======================

[](#installing-the-php-sdk)

The AvaTax PHP SDK is available as a Composer package.

To use the AvaTax PHP SDK from Composer:

- Add a `composer.json` file to your project and link to AvaTax:

```
{
    "require": {
        "avalara/avataxclient": "*"
    }
}
```

- Run `composer install` to download the latest version.

Using the PHP SDK
=================

[](#using-the-php-sdk)

The PHP SDK uses a fluent interface to define a connection to AvaTax and to make API calls to calculate tax on transactions. Here's an example of connecting to the API.

```
