beebots/taxify

Connect your website with Taxify's API. Originally zaycon/taxify.

v2.1.1 2022-09-30 16:53 UTC

This package is auto-updated.

Last update: 2024-04-29 04:34:00 UTC


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:

  • Support PHP >= 7.1.

  • Support PSR-4 autoloading.

  • Upgrade PHPUnit to v6 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 7 by Robert Kosek. Development time and effort is a courtesy of Wood Street.