openprovider / vat
Openprovider Calculator Vat Percent
1.0.4
2015-12-16 09:28 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 4.2.*
This package is not auto-updated.
Last update: 2024-10-26 20:04:17 UTC
README
From 01-01-2015 rules on VAT calculation in EU has changed and this package helps us to meet the legislation requirements regarding VAT percentage calculation throughout and outside EU including VAT exemption regions (e.g. like Canarian Islands).
Installation
$ composer require openprovider/vat
Usage
$calc = new \Openprovider\Vat\Calculator('2015-12-16', []); $calc->setProviderCountry('RU'); $calc->setCustomerCountry('RU'); $calc->setIsB2b(true); $vat = $calc->calculate();
Changelog
1.0.4
- Release to open source
1.0.3
- Rename method checkProvincesEu -> isEuExemption
1.0.2
- Update unit-tests
Authors
Contributors
All the contributors are welcome. If you would like to be the contributor please accept some rules.
- The pull requests will be accepted only in "develop" branch
- All modifications or additions should be tested
Thank you for your understanding!