2017 © Pedro Peláez
 

library eu

Tiny lib for info about EU countries

image

moccalotto/eu

Tiny lib for info about EU countries

  • Tuesday, January 31, 2017
  • by moccalotto
  • Repository
  • 1 Watchers
  • 0 Stars
  • 923 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 66 % Grown

The README.md

EU

Tiny lib for checking if a country is an EU member, and get the "normal" vat rate for that country., (*1)

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:, (*2)

{
    "require": {
        "moccalotto/eu": "~0.3"
    }
}

Run this command in the shell: composer require moccalotto/eu, (*3)

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)

The Versions

31/01 2017

dev-master

9999999-dev

Tiny lib for info about EU countries

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

vat europe eu european union

31/01 2017

0.3.0

0.3.0.0

Tiny lib for info about EU countries

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

vat europe eu european union

08/03 2016

0.2.1

0.2.1.0

Tiny lib for info about EU countries

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

vat europe eu european union

08/03 2016

0.2

0.2.0.0

Tiny lib for info about EU countries

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

vat europe eu european union