Skip to content

💰 A PHP package to grab up-to-date VAT rates for any European Union member state

License

Notifications You must be signed in to change notification settings

cba85/eu-vat-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

European VAT rates

A PHP package to grab up-to-date VAT rates for any European Union member state.

This package uses http://jsonvat.com to obtain its data for the VAT rates.

Installation

Install using Composer :

$ composer require cba85/eu-vat-rates dev-master

Usage

$rates = new Rates;

/**
 * Get VAT rate of a country
 */
$rate = $rates->getRate('FR');

/**
 * Get specific VAT rate of a country
 */
$rate = $rates->getRate('FR', 'reduced2');

You'll find more examples in the example folder.

Tests

If VAT rates evolve, change the results expected.

$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/RatesTest

About

💰 A PHP package to grab up-to-date VAT rates for any European Union member state

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages