rk / taxify
Connect your website with Taxify's API. Originally zaycon/taxify.
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Connect your website with the Taxify API
Table of Contents
Fork Notes
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
Installation
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" } ] }
Documentation
OUTDATED
Please see tests for the most up-to-date usage.
About
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.