{"id":21867791,"url":"https://github.com/taxjar/taxjar-php","last_synced_at":"2025-04-05T15:07:14.993Z","repository":{"id":44728295,"uuid":"37683259","full_name":"taxjar/taxjar-php","owner":"taxjar","description":"Sales Tax API Client for PHP 5.5+","archived":false,"fork":false,"pushed_at":"2023-07-20T07:39:53.000Z","size":140,"stargazers_count":69,"open_issues_count":2,"forks_count":24,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-29T14:08:23.061Z","etag":null,"topics":["ecommerce","php","sales-tax","sales-tax-api","tax","tax-rate","taxjar"],"latest_commit_sha":null,"homepage":"https://developers.taxjar.com/api/reference/?php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taxjar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-18T20:30:54.000Z","updated_at":"2025-03-22T20:56:00.000Z","dependencies_parsed_at":"2024-06-18T13:48:26.187Z","dependency_job_id":"b7b19983-c849-4516-b7b4-fc8d3a72554a","html_url":"https://github.com/taxjar/taxjar-php","commit_stats":{"total_commits":112,"total_committers":12,"mean_commits":9.333333333333334,"dds":0.3571428571428571,"last_synced_commit":"e3d75d561bf76e7891b2d4ab437596789c1b3a73"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxjar%2Ftaxjar-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxjar%2Ftaxjar-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxjar%2Ftaxjar-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taxjar%2Ftaxjar-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taxjar","download_url":"https://codeload.github.com/taxjar/taxjar-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecommerce","php","sales-tax","sales-tax-api","tax","tax-rate","taxjar"],"created_at":"2024-11-28T05:10:31.802Z","updated_at":"2025-04-05T15:07:14.974Z","avatar_url":"https://github.com/taxjar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TaxJar Sales Tax API for PHP [![Packagist](https://img.shields.io/packagist/v/taxjar/taxjar-php.svg)](https://packagist.org/packages/taxjar/taxjar-php) [![Build Status](https://img.shields.io/travis/taxjar/taxjar-php.svg?style=flat-square)](https://travis-ci.org/taxjar/taxjar-php)\n\nOfficial PHP client for Sales Tax API v2. For the REST documentation, please visit [https://developers.taxjar.com/api](https://developers.taxjar.com/api/reference/?php).\n\n\u003chr\u003e\n\n[Requirements](#requirements)\u003cbr\u003e\n[Installation](#installation)\u003cbr\u003e\n[Authentication](#authentication)\u003cbr\u003e\n[Usage](#usage)\u003cbr\u003e\n[Custom Options](#custom-options)\u003cbr\u003e\n[Sandbox Environment](#sandbox-environment)\u003cbr\u003e\n[Error Handling](#error-handling)\u003cbr\u003e\n[Testing](#testing)\n\n\u003chr\u003e\n\n## Requirements\n\n- PHP 8.0 and later.\n- [Guzzle](https://github.com/guzzle/guzzle) (included via Composer).\n\n## Installation\n\nUse Composer and add `taxjar-php` as a dependency:\n\n```\ncomposer require taxjar/taxjar-php\n```\n\n```json\n{\n  \"require\": {\n    \"taxjar/taxjar-php\": \"^2.0\"\n  }\n}\n```\n\nIf you get an error with `composer require`, update your `composer.json` directly and run `composer update`.\n\n## Authentication\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n$client = TaxJar\\Client::withApiKey($_ENV['TAXJAR_API_KEY']);\n```\n\nYou're now ready to use TaxJar! [Check out our quickstart guide](https://developers.taxjar.com/api/guides/php/#php-quickstart) to get up and running quickly.\n\n## Usage\n\n[`categories` - List all tax categories](#list-all-tax-categories-api-docs)\u003cbr\u003e\n[`taxForOrder` - Calculate sales tax for an order](#calculate-sales-tax-for-an-order-api-docs)\u003cbr\u003e\n[`listOrders` - List order transactions](#list-order-transactions-api-docs)\u003cbr\u003e\n[`showOrder` - Show order transaction](#show-order-transaction-api-docs)\u003cbr\u003e\n[`createOrder` - Create order transaction](#create-order-transaction-api-docs)\u003cbr\u003e\n[`updateOrder` - Update order transaction](#update-order-transaction-api-docs)\u003cbr\u003e\n[`deleteOrder` - Delete order transaction](#delete-order-transaction-api-docs)\u003cbr\u003e\n[`listRefunds` - List refund transactions](#list-refund-transactions-api-docs)\u003cbr\u003e\n[`showRefund` - Show refund transaction](#show-refund-transaction-api-docs)\u003cbr\u003e\n[`createRefund` - Create refund transaction](#create-refund-transaction-api-docs)\u003cbr\u003e\n[`updateRefund` - Update refund transaction](#update-refund-transaction-api-docs)\u003cbr\u003e\n[`deleteRefund` - Delete refund transaction](#delete-refund-transaction-api-docs)\u003cbr\u003e\n[`listCustomers` - List customers](#list-customers-api-docs)\u003cbr\u003e\n[`showCustomer` - Show customer](#show-customer-api-docs)\u003cbr\u003e\n[`createCustomer` - Create customer](#create-customer-api-docs)\u003cbr\u003e\n[`updateCustomer` - Update customer](#update-customer-api-docs)\u003cbr\u003e\n[`deleteCustomer` - Delete customer](#delete-customer-api-docs)\u003cbr\u003e\n[`ratesForLocation` - List tax rates for a location (by zip/postal code)](#list-tax-rates-for-a-location-by-zippostal-code-api-docs)\u003cbr\u003e\n[`nexusRegions` - List nexus regions](#list-nexus-regions-api-docs)\u003cbr\u003e\n[`validateAddress` - Validate an address](#validate-an-address-api-docs)\u003cbr\u003e\n[`validate` - Validate a VAT number](#validate-a-vat-number-api-docs)\u003cbr\u003e\n[`summaryRates` - Summarize tax rates for all regions](#summarize-tax-rates-for-all-regions-api-docs)\n\n\u003chr\u003e\n\n### List all tax categories \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-list-tax-categories))_\u003c/small\u003e\n\n\u003e The TaxJar API provides product-level tax rules for a subset of product categories. These categories are to be used for products that are either exempt from sales tax in some jurisdictions or are taxed at reduced rates. You need not pass in a product tax code for sales tax calculations on product that is fully taxable. Simply leave that parameter out.\n\n```php\n$categories = $client-\u003ecategories();\n```\n\n### Calculate sales tax for an order \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#post-calculate-sales-tax-for-an-order))_\u003c/small\u003e\n\n\u003e Shows the sales tax that should be collected for a given order.\n\n```php\n$order_taxes = $client-\u003etaxForOrder([\n  'from_country' =\u003e 'US',\n  'from_zip' =\u003e '07001',\n  'from_state' =\u003e 'NJ',\n  'from_city' =\u003e 'Avenel',\n  'from_street' =\u003e '305 W Village Dr',\n  'to_country' =\u003e 'US',\n  'to_zip' =\u003e '07446',\n  'to_state' =\u003e 'NJ',\n  'to_city' =\u003e 'Ramsey',\n  'to_street' =\u003e '63 W Main St',\n  'amount' =\u003e 16.50,\n  'shipping' =\u003e 1.5,\n  'line_items' =\u003e [\n    [\n      'id' =\u003e '1',\n      'quantity' =\u003e 1,\n      'product_tax_code' =\u003e '31000',\n      'unit_price' =\u003e 15.0,\n      'discount' =\u003e 0\n    ]\n  ]\n]);\n\necho $order_taxes-\u003eamount_to_collect;\n// 1.26\n```\n\n### List order transactions \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-list-order-transactions))_\u003c/small\u003e\n\n\u003e Lists existing order transactions created through the API.\n\n```php\n$orders = $client-\u003elistOrders([\n  'from_transaction_date' =\u003e '2015/05/01',\n  'to_transaction_date' =\u003e '2015/05/31'\n]);\n```\n\n### Show order transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-show-an-order-transaction))_\u003c/small\u003e\n\n\u003e Shows an existing order transaction created through the API.\n\n```php\n$order = $client-\u003eshowOrder('123');\n```\n\n### Create order transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#post-create-an-order-transaction))_\u003c/small\u003e\n\n\u003e Creates a new order transaction.\n\n```php\n$order = $client-\u003ecreateOrder([\n  'transaction_id' =\u003e '123',\n  'transaction_date' =\u003e '2015/05/14',\n  'from_country' =\u003e 'US',\n  'from_zip' =\u003e '92093',\n  'from_state' =\u003e 'CA',\n  'from_city' =\u003e 'La Jolla',\n  'from_street' =\u003e '9500 Gilman Drive',\n  'to_country' =\u003e 'US',\n  'to_zip' =\u003e '90002',\n  'to_state' =\u003e 'CA',\n  'to_city' =\u003e 'Los Angeles',\n  'to_street' =\u003e '123 Palm Grove Ln',\n  'amount' =\u003e 17.45,\n  'shipping' =\u003e 1.5,\n  'sales_tax' =\u003e 0.95,\n  'line_items' =\u003e [\n    [\n      'id' =\u003e '1',\n      'quantity' =\u003e 1,\n      'product_identifier' =\u003e '12-34243-9',\n      'description' =\u003e 'Fuzzy Widget',\n      'unit_price' =\u003e 15.0,\n      'discount': 0,\n      'sales_tax' =\u003e 0.95\n    ]\n  ]\n]);\n```\n\n### Update order transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#put-update-an-order-transaction))_\u003c/small\u003e\n\n\u003e Updates an existing order transaction created through the API.\n\n```php\n$order = $client-\u003eupdateOrder([\n  'transaction_id' =\u003e '123',\n  'amount' =\u003e 17.95,\n  'shipping' =\u003e 2.0,\n  'line_items' =\u003e [\n    [\n      'quantity' =\u003e 1,\n      'product_identifier' =\u003e '12-34243-0',\n      'description' =\u003e 'Heavy Widget',\n      'unit_price' =\u003e 15.0,\n      'discount' =\u003e 0.0,\n      'sales_tax' =\u003e 0.95\n    ]\n  ]\n]);\n```\n\n### Delete order transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#delete-delete-an-order-transaction))_\u003c/small\u003e\n\n\u003e Deletes an existing order transaction created through the API.\n\n```php\n$client-\u003edeleteOrder('123');\n```\n\n### List refund transactions \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-list-refund-transactions))_\u003c/small\u003e\n\n\u003e Lists existing refund transactions created through the API.\n\n```php\n$refunds = $client-\u003elistRefunds([\n  'from_transaction_date' =\u003e '2015/05/01',\n  'to_transaction_date' =\u003e '2015/05/31'\n]);\n```\n\n### Show refund transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-show-a-refund-transaction))_\u003c/small\u003e\n\n\u003e Shows an existing refund transaction created through the API.\n\n```php\n$refund = $client-\u003eshowRefund('123-refund');\n```\n\n### Create refund transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#post-create-a-refund-transaction))_\u003c/small\u003e\n\n\u003e Creates a new refund transaction.\n\n```php\n$refund = $client-\u003ecreateRefund([\n  'transaction_id' =\u003e '123-refund',\n  'transaction_reference_id' =\u003e '123',\n  'transaction_date' =\u003e '2015/05/14',\n  'from_country' =\u003e 'US',\n  'from_zip' =\u003e '92093',\n  'from_state' =\u003e 'CA',\n  'from_city' =\u003e 'La Jolla',\n  'from_street' =\u003e '9500 Gilman Drive',\n  'to_country' =\u003e 'US',\n  'to_zip' =\u003e '90002',\n  'to_state' =\u003e 'CA',\n  'to_city' =\u003e 'Los Angeles',\n  'to_street' =\u003e '123 Palm Grove Ln',\n  'amount' =\u003e -17.45,\n  'shipping' =\u003e -1.5,\n  'sales_tax' =\u003e -0.95,\n  'line_items' =\u003e [\n    [\n      'id' =\u003e '1',\n      'quantity' =\u003e 1,\n      'product_identifier' =\u003e '12-34243-9',\n      'description' =\u003e 'Fuzzy Widget',\n      'unit_price' =\u003e -15.0,\n      'discount' =\u003e -0,\n      'sales_tax' =\u003e -0.95\n    ]\n  ]\n]);\n```\n\n### Update refund transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#put-update-a-refund-transaction))_\u003c/small\u003e\n\n\u003e Updates an existing refund transaction created through the API.\n\n```php\n$refund = $client-\u003eupdateRefund([\n  'transaction_id' =\u003e '123-refund',\n  'transaction_reference_id' =\u003e '123',\n  'amount' =\u003e -17.95,\n  'shipping' =\u003e -2.0,\n  'line_items' =\u003e [\n    [\n      'id' =\u003e '1',\n      'quantity' =\u003e 1,\n      'product_identifier' =\u003e '12-34243-0',\n      'description' =\u003e 'Heavy Widget',\n      'unit_price' =\u003e -15.0,\n      'discount' =\u003e -0,\n      'sales_tax' =\u003e -0.95\n    ]\n  ]\n]);\n```\n\n### Delete refund transaction \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#delete-delete-a-refund-transaction))_\u003c/small\u003e\n\n\u003e Deletes an existing refund transaction created through the API.\n\n```php\n$client-\u003edeleteRefund('123-refund');\n```\n\n### List customers \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-list-customers))_\u003c/small\u003e\n\n\u003e Lists existing customers created through the API.\n\n```php\n$customers = $client-\u003elistCustomers();\n```\n\n### Show customer \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-show-a-customer))_\u003c/small\u003e\n\n\u003e Shows an existing customer created through the API.\n\n```php\n$customer = $client-\u003eshowCustomer('123');\n```\n\n### Create customer \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#post-create-a-customer))_\u003c/small\u003e\n\n\u003e Creates a new customer.\n\n```php\n$customer = $client-\u003ecreateCustomer([\n  'customer_id' =\u003e '123',\n  'exemption_type' =\u003e 'wholesale',\n  'name' =\u003e 'Dunder Mifflin Paper Company',\n  'exempt_regions' =\u003e [\n    [\n      'country' =\u003e 'US',\n      'state' =\u003e 'FL'\n    ],\n    [\n      'country' =\u003e 'US',\n      'state' =\u003e 'PA'\n    ]\n  ],\n  'country' =\u003e 'US',\n  'state' =\u003e 'PA',\n  'zip' =\u003e '18504',\n  'city' =\u003e 'Scranton',\n  'street' =\u003e '1725 Slough Avenue'\n]);\n```\n\n### Update customer \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#put-update-a-customer))_\u003c/small\u003e\n\n\u003e Updates an existing customer created through the API.\n\n```php\n$customer = $client-\u003eupdateCustomer([\n  'customer_id' =\u003e '123',\n  'exemption_type' =\u003e 'wholesale',\n  'name' =\u003e 'Sterling Cooper',\n  'exempt_regions' =\u003e [\n    [\n      'country' =\u003e 'US',\n      'state' =\u003e 'NY'\n    ]\n  ],\n  'country' =\u003e 'US',\n  'state' =\u003e 'NY',\n  'zip' =\u003e '10010',\n  'city' =\u003e 'New York',\n  'street' =\u003e '405 Madison Ave'\n]);\n```\n\n### Delete customer \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#delete-delete-a-customer))_\u003c/small\u003e\n\n\u003e Deletes an existing customer created through the API.\n\n```php\n$client-\u003edeleteCustomer('123');\n```\n\n### List tax rates for a location (by zip/postal code) \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-show-tax-rates-for-a-location))_\u003c/small\u003e\n\n\u003e Shows the sales tax rates for a given location.\n\u003e\n\u003e **Please note this method only returns the full combined rate for a given location.** It does not support nexus determination, sourcing based on a ship from and ship to address, shipping taxability, product exemptions, customer exemptions, or sales tax holidays. We recommend using [`taxForOrder` to accurately calculate sales tax for an order](#calculate-sales-tax-for-an-order-api-docs).\n\n```php\n$rates = $client-\u003eratesForLocation(90002, [\n  'city' =\u003e 'LOS ANGELES',\n  'country' =\u003e 'US'\n]);\n\necho $rates-\u003ecombined_rate;\n// 0.09\n```\n\n### List nexus regions \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-list-nexus-regions))_\u003c/small\u003e\n\n\u003e Lists existing nexus locations for a TaxJar account.\n\n```php\n$nexus_regions = $client-\u003enexusRegions();\n```\n\n### Validate an address \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#post-validate-an-address))_\u003c/small\u003e\n\n\u003e Validates a customer address and returns back a collection of address matches. **Address validation requires a [TaxJar Plus](https://www.taxjar.com/plus/) subscription.**\n\n```php\n$addresses = $client-\u003evalidateAddress([\n  'country' =\u003e 'US',\n  'state' =\u003e 'AZ',\n  'zip' =\u003e '85297',\n  'city' =\u003e 'Gilbert',\n  'street' =\u003e '3301 South Greenfield Rd'\n]);\n```\n\n### Validate a VAT number \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-validate-a-vat-number))_\u003c/small\u003e\n\n\u003e Validates an existing VAT identification number against [VIES](http://ec.europa.eu/taxation_customs/vies/).\n\n```php\n$validation = $client-\u003evalidate([\n  'vat' =\u003e 'FR40303265045'\n]);\n```\n\n### Summarize tax rates for all regions \u003csmall\u003e_([API docs](https://developers.taxjar.com/api/reference/?php#get-summarize-tax-rates-for-all-regions))_\u003c/small\u003e\n\n\u003e Retrieve minimum and average sales tax rates by region as a backup.\n\u003e\n\u003e This method is useful for periodically pulling down rates to use if the TaxJar API is unavailable. However, it does not support nexus determination, sourcing based on a ship from and ship to address, shipping taxability, product exemptions, customer exemptions, or sales tax holidays. We recommend using [`taxForOrder` to accurately calculate sales tax for an order](#calculate-sales-tax-for-an-order-api-docs).\n\n```php\n$summarized_rates = $client-\u003esummaryRates();\n```\n\n## Sandbox Environment\n\nYou can easily configure the client to use the [TaxJar Sandbox](https://developers.taxjar.com/api/reference/?php#sandbox-environment):\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n$client = TaxJar\\Client::withApiKey($_ENV['TAXJAR_SANDBOX_API_KEY']);\n$client-\u003esetApiConfig('api_url', TaxJar\\Client::SANDBOX_API_URL);\n```\n\nFor testing specific [error response codes](https://developers.taxjar.com/api/reference/?php#errors), pass the custom `X-TJ-Expected-Response` header:\n\n```php\n$client-\u003esetApiConfig('headers', [\n  'X-TJ-Expected-Response' =\u003e 422\n]);\n```\n\n## Custom Options\n\n### Timeout\n\u003e This package utilizes Guzzle which defaults to a request timeout value of 0s, allowing requests to remain pending for an indefinite period of time.\n\u003e\n\u003e You can modify this behavior by configuring the client with a `timeout` value in seconds.\n```php\n$client-\u003esetApiConfig('timeout', 30);\n```\n\n### API Version\n\u003e By default, TaxJar's API will respond to requests with the [latest API version](https://developers.taxjar.com/api/reference/#changelog) when a version header is not present on the request.\n\u003e\n\u003e To request a specific API version, include the `x-api-version` header with the desired version string.\n```php\n$client-\u003esetApiConfig('headers', [\n  'x-api-version' =\u003e '2020-08-07'\n]);\n```\n\n\n## Error Handling\n\nWhen invalid data is sent to TaxJar or we encounter an error, we’ll throw a `TaxJar\\Exception` with the HTTP status code and error message. To catch these exceptions, refer to the example below:\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n$client = TaxJar\\Client::withApiKey($_ENV['TAXJAR_API_KEY']);\n\ntry {\n  // Invalid request\n  $order = $client-\u003ecreateOrder([\n    'transaction_date' =\u003e '2015/05/14',\n    'from_country' =\u003e 'US',\n    'from_zip' =\u003e '07001',\n    'from_state' =\u003e 'NJ',\n    'from_city' =\u003e 'Avenel',\n    'from_street' =\u003e '305 W Village Dr',\n    'to_country' =\u003e 'US',\n    'to_zip' =\u003e '90002',\n    'to_state' =\u003e 'CA',\n    'to_city' =\u003e 'Ramsey',\n    'to_street' =\u003e '63 W Main St',\n    'amount' =\u003e 16.5,\n    'shipping' =\u003e 1.5,\n    'sales_tax' =\u003e 0.95,\n    'line_items' =\u003e [\n      [\n        'id' =\u003e '1',\n        'quantity' =\u003e 1,\n        'product_tax_code' =\u003e '31000',\n        'unit_price' =\u003e 15,\n        'discount' =\u003e 0,\n        'sales_tax' =\u003e 0.95\n      ]\n    ]\n  ]);\n} catch (TaxJar\\Exception $e) {\n  // 406 Not Acceptable – transaction_id is missing\n  echo $e-\u003egetMessage();\n\n  // 406\n  echo $e-\u003egetStatusCode();\n}\n```\n\nFor a full list of error codes, [click here](https://developers.taxjar.com/api/reference/?php#errors).\n\n## Testing\n\nMake sure PHPUnit is installed via `composer install` and run the following:\n\n```\nphp vendor/bin/phpunit test/specs/.\n```\n\nTo enable debug mode, set the following config parameter after authenticating:\n\n```php\n$client-\u003esetApiConfig('debug', true);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaxjar%2Ftaxjar-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaxjar%2Ftaxjar-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaxjar%2Ftaxjar-php/lists"}