The AvaTax PHP SDK is available as a Composer package. To use the AvaTax PHP SDK from Composer:
composer.json
file to your project and link to AvaTax:{
"require": {
"avalara/avataxclient": "*"
}
}
composer install
to download the latest version.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.