fcosrno / fica-php
PHP class to return Social Security and Medicare amounts from a give number.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:class
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2024-11-19 02:57:29 UTC
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