moccalotto / eu
Tiny lib for info about EU countries
Installs: 5 673
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2024-11-07 00:38:02 UTC
README
Tiny lib for checking if a country is an EU member, and get the "normal" vat rate for that country.
Installation
To add this package as a local, per-project dependency to your project, simply add a dependency on
moccalotto/eu
to your project's composer.json
file like so:
{ "require": { "moccalotto/eu": "~0.3" } }
Run this command in the shell: composer require moccalotto/eu
Demo
<?php use Moccalotto\Eu\CountryInfo; require 'vendor/autoload.php'; $info = new CountryInfo(); var_dump($info->isEuMember('DK')); // bool(true) var_dump($info->vatRate('DK')); // int(25)