{"id":21179154,"url":"https://github.com/avadev/avatax-calc-rest-php","last_synced_at":"2025-07-09T22:32:11.196Z","repository":{"id":10107221,"uuid":"12171869","full_name":"avadev/AvaTax-Calc-REST-PHP","owner":"avadev","description":"PHP sample for the AvaTax Calc REST API","archived":false,"fork":false,"pushed_at":"2017-03-23T09:42:03.000Z","size":162,"stargazers_count":10,"open_issues_count":4,"forks_count":28,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-03-27T01:28:10.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-17T02:04:03.000Z","updated_at":"2024-03-27T01:28:10.563Z","dependencies_parsed_at":"2022-09-17T08:30:52.256Z","dependency_job_id":null,"html_url":"https://github.com/avadev/AvaTax-Calc-REST-PHP","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avadev%2FAvaTax-Calc-REST-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avadev","download_url":"https://codeload.github.com/avadev/AvaTax-Calc-REST-PHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225600953,"owners_count":17494734,"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":[],"created_at":"2024-11-20T17:28:58.922Z","updated_at":"2024-11-20T17:29:00.010Z","avatar_url":"https://github.com/avadev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"AvaTax-REST-PHP\n=====================\n[Other Samples](http://developer.avalara.com/api-docs/api-sample-code)\n\nThis is a PHP sample demonstrating the [AvaTax REST API](http://developer.avalara.com/api-docs/rest) methods:\n [tax/get POST](http://developer.avalara.com/api-docs/rest/tax/post/), [tax/get GET](http://developer.avalara.com/api-docs/rest/tax/get), [tax/cancel POST](http://developer.avalara.com/api-docs/rest/tax/cancel), and [address/validate GET](http://developer.avalara.com/api-docs/rest/address-validation).\n \n For more information on the use of these methods and the AvaTax product, please visit our [developer site](http://developer.avalara.com/) or [homepage](http://www.avalara.com/)\n\nDependencies:\n-----------\n- PHP 5.3 or later (not tested on versions older than PHP 5.3)\n- cURL has to be installed on the server before the HTTP REST Request can be made from PHP. Some PHP installations come with cURL, but others need to be installed manually. Try running curl --help from any command line on the server you have PHP installed to see if cURL is working. If cURL is not, you can manually install it from this URL : http://curl.haxx.se\n- A Root Certificate needs to be installed for cURL to work. You have to save the root CRT file into a folder on your server and configure cURL to use that exact certificate. Instructions for downloading it can be found here : http://developer.avalara.com/api-docs/designing-your-integration/errors-and-outages/ssl-certificates \n\nRequirements:\n----------\n- Authentication requires an valid **Account Number** and **License Key**, which should be entered in the test file (e.g. GetTaxTest.php) you would like to run.\n- If you do not have an AvaTax account, a free trial account can be acquired through our [developer site](http://developer.avalara.com/api-get-started)\n- Some Windows users have had trouble with cURL automatically using our SSL certificate. The sample code offers \ntwo workarounds (both in /AvaTaxClasses/classes/TaxServiceRest.php.class). If this is something that presents a challenge\nfor your system, uncomment ONE of the following two options in that file:\n\n\t\t//Some Windows users have had trouble with our SSL Certificates. Uncomment the following line to NOT use SSL.\n        // *This is not recommended, see below for better alternative*\n\t\t//curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); \t\t\n\t\t\n        //Other Windows users may prefer to download the certificate from our site (detail here: http://developer.avalara.com/api-docs/designing-your-integration/errors-and-outages/ssl-certificates) and manually set the cert path.\n\t\t//    To set the path manually, uncomment the following two lines and ensure you are telling curl where it can find the root certificate. If you choose to manually set the path, make sure you have reenabled cURL by commenting out the line above \n\t\t//    that tells curl to NOT use SSL.\n\t\t//$ca = \"C:/curl/curl-ca-bundle.crt\";\n\t\t//curl_setopt($curl, CURLOPT_CAINFO, $ca);\n\n- If you would like to use these core classes as part of a project and manage your depencies through [composer](https://getcomposer.org/), the Avatax classes can be added to your existing project by adding\n```\n    \"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\": \"https://github.com/avadev/AvaTax-Calc-REST-PHP\"\n        }\n    ],\n    \"require\": {\n        \"avalara/avatax-rest-api\": \"*\"\n    }\n```\nto your composer.json file and run `php composer.phar update` from your command line.\n\nContents:\n----------\n \n\u003ctable\u003e\n\u003cth colspan=\"2\" align=left\u003eSample Files\u003c/th\u003e\n\u003ctr\u003e\u003ctd\u003eCancelTaxTest.php\u003c/td\u003e\u003ctd\u003eDemonstrates the \u003ca href=\"http://developer.avalara.com/api-docs/rest/tax/cancel\"\u003eCancelTax\u003c/a\u003e method used to \u003ca href=\"http://developer.avalara.com/api-docs/api-reference/canceltax\"\u003evoid a document\u003c/a\u003e.\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eEstimateTaxTest.php\u003c/td\u003e\u003ctd\u003eDemonstrates the \u003ca href=\"http://developer.avalara.com/api-docs/rest/tax/get\"\u003eEstimateTax\u003c/a\u003e method used for product- and line- indifferent tax estimates.\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eGetTaxTest.php\u003c/td\u003e\u003ctd\u003eDemonstrates the \u003ca href=\"http://developer.avalara.com/api-docs/rest/tax/post\"\u003eGetTax\u003c/a\u003e method used for product- and line- specific \u003ca href=\"http://developer.avalara.com/api-docs/api-reference/gettax\"\u003ecalculation\u003c/a\u003e.\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003ePingTest.php\u003c/td\u003e\u003ctd\u003eUses a hardcoded EstimateTax call to test connectivity and credential information.\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eValidateAddressTest.php\u003c/td\u003e\u003ctd\u003eDemonstrates the \u003ca href=\"http://developer.avalara.com/api-docs/rest/address-validation\"\u003eValidateAddress\u003c/a\u003e method to \u003ca href=\"http://developer.avalara.com/api-docs/api-reference/address-validation\"\u003enormalize an address\u003c/a\u003e.\u003c/td\u003e\u003c/tr\u003e\n\u003cth colspan=\"2\" align=left\u003eOther Files\u003c/th\u003e\n\u003ctr\u003e\u003ctd\u003eAvaTaxClasses/\u003c/td\u003e\u003ctd\u003eContains the core classes that make the service calls.\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e.gitattributes\u003c/td\u003e\u003ctd\u003e-\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e.gitignore\u003c/td\u003e\u003ctd\u003e-\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eLICENSE.md\u003c/td\u003e\u003ctd\u003e-\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003eREADME.md\u003c/td\u003e\u003ctd\u003e-\u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-calc-rest-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favadev%2Favatax-calc-rest-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favadev%2Favatax-calc-rest-php/lists"}