2017 © Pedro Peláez
 

library mortgage-calculator

A class for calculating remaining amounts on a mortgage

image

centralapps/mortgage-calculator

A class for calculating remaining amounts on a mortgage

  • Thursday, June 13, 2013
  • by mkpeacock
  • Repository
  • 2 Watchers
  • 11 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Mortgage Calculator

Calculates monthly repayment and monthly interest-only costs for a mortgage., (*1)

Example

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;

Change log

  • Cleaned up some code, added composer.json support
  • Initial version of the library

Todo

  • Abstract mortgage to a separate class, support calculating things like repayment time left, total repayment amount, and so on

The Versions

13/06 2013

dev-master

9999999-dev

A class for calculating remaining amounts on a mortgage

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

calculator mortgage interest only repayment interest