2017 © Pedro PelĂĄez
 

library eu-vat-rates

A PHP component to grab up-to-date VAT rates for any European member state

image

cba85/eu-vat-rates

A PHP component to grab up-to-date VAT rates for any European member state

  • Monday, March 20, 2017
  • by cba85
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

European VAT rates

A PHP package to grab up-to-date VAT rates for any European Union member state., (*1)

This package uses http://jsonvat.com to obtain its data for the VAT rates., (*2)

Installation

Install using Composer :, (*3)

$ 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., (*4)

Tests

If VAT rates evolve, change the results expected., (*5)

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

The Versions

20/03 2017

dev-master

9999999-dev http://github.com/cba85/eu-vat-rates

A PHP component to grab up-to-date VAT rates for any European member state

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

rates vat europe