dev-master
9999999-devPHP class to return Social Security and Medicare amounts from a give number.
MIT
The Development Requires
by Francisco Serrano
tax fica social security medicare
PHP class to return Social Security and Medicare amounts from a give number.
PHP class to return Social Security and Medicare amounts from a given number., (*1)
There is a working example in example/index.php, (*2)
composer require fcosrno/fica-php
Instantiate the class passing an amount (in cents). An exception is thrown if the amount is not an integer., (*3)
$fica = new Fica(2000);
Get FICA amount (Social Security plus Medicare)., (*4)
$fica->getFica(); // Returns 153 (cents)
Get Social Security amount., (*5)
$fica->getSocialSecurity(); // Returns 124 (cents)
Get Medicare amount., (*6)
$fica->getMedicare(); // Returns 29 (cents)
composer install vendor/bin/phpspec run -f pretty
PHP class to return Social Security and Medicare amounts from a give number.
MIT
tax fica social security medicare