Skip to content

Helps you handle monetary values. Convert to with vat, or without vat, calculate the vat between two values etc.

License

Notifications You must be signed in to change notification settings

Rackbeat/php-vat-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No more ugly math in your business logic.

Build Status Coverage Total Downloads Latest Stable Version License

Convert numbers to include or exclude VAT.

Installation

You just require using composer and you're good to go!

composer require rackbeat/php-vat-helper

Usage

Rackbeat\VAT::include($amountExclVat = 100.0, 25); // 125.0
Rackbeat\VAT::exclude($amountInclVat = 100.0, 25); // 80.0
Rackbeat\VAT::amount($amountInclVat = 100.0, 25); // 25.0
Rackbeat\VAT::percentage($amountInclVat = 100.0, $amountExclVat = 80.0); // 0.25

Plans

  • Better documentation
  • Per-country/region defined vat zones

Requirements

  • PHP >= 7.1

About

Helps you handle monetary values. Convert to with vat, or without vat, calculate the vat between two values etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages