moccalotto / eu
Tiny lib for info about EU countries
Installs: 6 694
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/moccalotto/eu
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-10-23 05:20:39 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)