Skip to content

PHP class to return Social Security and Medicare amounts from a give number.

Notifications You must be signed in to change notification settings

fcosrno/fica-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fica

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

About

PHP class to return Social Security and Medicare amounts from a give number.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages