Connect your website with the Taxify API
It looked like the original ZayconTaxify library was abandoned a few years ago at the time of writing this. We needed to support Taxify in a project, and it has been an adventure. The biggest challenge has been finding adequate documentation for the Taxify API itself.
This fork/alternative is derived from the original source of ZayconTaxify and differs enough to be its own implementation now. I've bumped the version to 2.0 to prevent any accidental installs of this package.
Major changes:
-
Require PHP 8.0.
-
Support PSR-4 autoloading.
-
Support for PSR Logging when debug mode is enabled.
-
Upgrade PHPUnit to v9 for development
-
Decoupled the common "request" object into individual requests:
VerifyAddress
CalculateTax
CommitTaxRequest
CancelTaxRequest
GetCodesRequest
-
Decoupled the common "response" object into individual responses:
VerifyAddressResponse
CalculateTax
CommitTaxResponse
CancelTaxResponse
GetCodesResponse
-
Refactored to make better use of traits and type hinting
Add rk/taxify
to your composer.json
file. (We're not currently published to
packagist.)
{
"require": {
"rk/taxify": "^2.0"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/rk/taxify.git"
}
]
}
OUTDATED
Please see tests for the most up-to-date usage.
Originally developed by Zaycon Fresh.
This version revised, refactored, and updated for PHP 8 by Robert Kosek. Development time and effort is a courtesy of Enforme Interactive.