Download the PHP package abwebdevelopers/aus-income-tax without Composer

On this page you can find all versions of the php package abwebdevelopers/aus-income-tax. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aus-income-tax

Australian Income Tax Calculator

Build Status codecov

Calculates withheld amounts from gross income as per the Australian Tax Office PAYG (pay-as-you-go) tax tables (currently on the 2018-2019 financial year).

Requirements

If using the included Excel Spreadsheet source reader, you will also need the following PHP extensions enabled:

Installation

Include this library in your application through Composer:

Usage

The library requires the published formulas from the Australian Tax Office in order to calculate the withheld amounts from gross income. These are generally published shortly before the end of the financial year. We have provided the latest files in the resources/tax-tables folder.

The codes that the ATO uses are as follows:

Code Contains
NAT 1004 Standard formula for working out income tax.
NAT 3539 Formula for working out income tax for people who claim a HELP (Higher Education Loan Program), SFSS (Student Financial Supplement Scheme) or other student assistance debt.
NAT 4466 Formula for working out income tax for seniors and pensioners

The easiest way to use this library is to use the Excel Spreadsheet reader to automatically feed this formula into the library:

Once loaded, you can calculate the tax withheld amount of a wage using the following:

This should return an integer value of the amount of tax to be withheld for the gross income.

Exception codes

\ABWebDevelopers\AusIncomeTax\Exception\CalculationException

Code Message
1000 Default error code for calculation errors.
1001 Gross amount cannot be negative.
1002 Invalid payment frequency specified.
2001 Invalid threshold type or scale provided.
2002 No tax table source provided.

\ABWebDevelopers\AusIncomeTax\Exception\SourceException

Code Message
2000 Default error code for source errors.
2001 Invalid threshold type or scale provided.
2002 Missing or invalid source file provided.
2003 Invalid seniors offset value.
2004 Invalid Medicare Levy Exemption value.
2005 Malformed source file provided.

Disclaimer

Whilst great care has been taken to ensure that this library returns correct withheld tax calculations and has been thoroughly checked against the ATO test data, it does not take into account certain offsets or adjustments that can be made to a person's taxation responsibility. You should always verify any calculations with a registered tax agent. AB Web Developers accepts no responsibility for any tax miscalculations or assumptions that are made as the result of using this library.


All versions of aus-income-tax with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
phpoffice/phpspreadsheet Version ^1.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package abwebdevelopers/aus-income-tax contains the following files

Loading the files please wait ....