Tiny lib for info about EU countries

Installs: 6 649

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/moccalotto/eu

0.3.0 2017-01-31 07:39 UTC

This package is not auto-updated.

Last update: 2025-10-09 05:07:53 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)