library loan-payment-calculator
Loan payment calculation library
kaurikk/loan-payment-calculator
Loan payment calculation library
- Saturday, April 29, 2017
- by kaurikk
- Repository
- 0 Watchers
- 1 Stars
- 13 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 4 Versions
- 0 % Grown
, (*1)
loan-payment-calculator
Library to calculate full loan payments (with dates, periods, principal and interest amounts)., (*2)
Basic usage
// $paymentAmountCalculator is instance of PaymentAmountCalculatorInterface
// $interestAmountCalculator is instance of InterestAmountCalculatorInterface
$calculator = new PaymentsCalculator($paymentAmountCalculator, $interestAmountCalculator);
$periods = $paymentPeriods; // must be instance of PaymentPeriodsInterface
$principal = 2000;
$interestRate = 20;
$calculationMode = 1; // see PaymentPeriodsInterface for available modes
$futureValue = 0; // Expected value after loan end, usually 0
$payments = $calculator->calculatePayments($periods, $principal, $interestRate, $calculationMode, $futureValue);
dev-master
9999999-dev
Loan payment calculation library
Sources
Download
MIT
The Requires
The Development Requires
by
Kauri Kont-Kontson
0.0.3
0.0.3.0
Loan payment calculation library
Sources
Download
MIT
The Requires
The Development Requires
by
Kauri Kont-Kontson
0.0.2
0.0.2.0
Loan payment calculation library
Sources
Download
MIT
The Requires
The Development Requires
by
Kauri Kont-Kontson
0.0.1
0.0.1.0
Loan payment calculation library
Sources
Download
MIT
The Requires
The Development Requires
by
Kauri Kont-Kontson