moccalotto/eu
最新稳定版本:0.3.0
Composer 安装命令:
composer require moccalotto/eu
包简介
Tiny lib for info about EU countries
README 文档
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)
统计信息
- 总下载量: 6.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-08