centralapps / mortgage-calculator
一个用于计算按揭剩余金额的类
dev-master
2013-06-13 09:15 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-24 02:42:15 UTC
README
计算按揭的每月还款额和每月仅利息费用。
示例
require_once 'vendor/autoload.php';
$calculator = new CentralApps\MortgageCalculator\Calculator();
$calculator->setAmountBorrowed( 125000 );
$calculator->setInterestRate( 6 );
$calculator->setYears( 25 );
echo 'Monthly repayment costs £' . $calculator->calculateRepayment() . PHP_EOL;
echo 'Monthly interest-only costs £' . $calculator->calculateInterestOnlyPayment() . PHP_EOL;
变更日志
- 清理了一些代码,增加了composer.json支持
- 库的初始版本
待办事项
- 将抽象按揭为一个单独的类,支持计算剩余还款时间、总还款金额等