PHP code example of espiktarenko / mortgage
1. Go to this page and download the library: Download espiktarenko/mortgage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
espiktarenko / mortgage example snippets
$mortgage = new Espiktarenko\Mortgage\MortgageCount();
$cost = $mortgage->mortgage($sum, $years, $interestRate);
$mortgage = new Espiktarenko\Mortgage\MortgageCount();
$sum = 100000; // The loan amount
$years = 10; // The loan term in years
$interestRate = 5; // The interest rate in percentage
$cost = $mortgage->mortgage($sum, $years, $interestRate);