Download the PHP package teamzac/zactax-php without Composer
On this page you can find all versions of the php package teamzac/zactax-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download teamzac/zactax-php
More information about teamzac/zactax-php
Files in teamzac/zactax-php
Package zactax-php
Short Description The official PHP client for the ZacTax API
License MIT
Informations about the package zactax-php
ZacTax PHP Client
This is the official PHP client for the ZacTax API. Although it's in 1.0 release, there are likely to be some major (possibly breaking) changes to the library. See the roadmap below for more information.
Installation
The recommended method is to install via Composer:
Usage
The main entry point is the object. The constructor accepts an array of options, some of which can be set fluently if you need to set them after instantiation:
Notes: * The Jurisdiction ID is recommended, but not strictly necessary when the API Token being used only has access to a single jurisdiction. Some users, however, will have access to multiple jurisdictions, in which case it is highly recommended that you set this option to ensure that you're receiving the correct data.
Fluently setting options
You can also fluently set some of the options if you need to do so after instantiation:
Accessing resources
You can as properties on the instance:
These resources provide a similar interface, although not necessarily identical as they do not all have the same information or level of detail. Common endpoints to these resources are:
What follows is a quick list of endpoints for each resource.
Industries
Regions
Taxpayers
Users
We'll continue to flesh out the entire API over time, as this covers only a subset of the available data provided by ZacTax.
Roadmap
- Continue filling out the rest of the available endpoints to provide 100% coverage
- Return resources and collections from API calls that are more than the simple objects and arrays currently returned. For example, a taxpayers->find() call should return a Taxpayer instance, which can have things like ->getPayments() and ->updateName() methods on it.
- Improve test coverage
Issues
If you notice any issues or problems, please report them. For security problems, please email support[at]zactax.com.
All versions of zactax-php with dependencies
nesbot/carbon Version ~1.20
illuminate/support Version ^5.4
guzzlehttp/guzzle Version 6.*