fcosrno/fica-php
Composer 安装命令:
composer require fcosrno/fica-php
包简介
PHP class to return Social Security and Medicare amounts from a give number.
README 文档
README
PHP class to return Social Security and Medicare amounts from a given number.
Example
There is a working example in example/index.php
Installation
composer require fcosrno/fica-php
Usage
Instantiate the class passing an amount (in cents). An exception is thrown if the amount is not an integer.
$fica = new Fica(2000);
Get FICA amount (Social Security plus Medicare).
$fica->getFica(); // Returns 153 (cents)
Get Social Security amount.
$fica->getSocialSecurity(); // Returns 124 (cents)
Get Medicare amount.
$fica->getMedicare(); // Returns 29 (cents)
Tests
composer install
vendor/bin/phpspec run -f pretty
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-10-14