PHP Classes

Amort: Calculate and display loan amortization schedule

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 2,311 All time: 1,685 This week: 53Up
Version License PHP version Categories
amort 1.0.0GNU General Publi...5Content management, Finances
Description 

Author

This class can calculate and display an amortization schedule of a loan.

It outputs a form to enter the values of the amount of a loan, the interest rate, and the length in years of the loan.

Optionally, it will either display the entire schedule or just the following calculated amounts:

- Total amount paid over the life of the loan

- Total interest paid over the life of the loan

- Total number of monthly payments

- The monthly payment

Picture of George Clarke
Name: George Clarke <contact>
Classes: 7 packages by
Country: United States United States
Age: 78
All time rank: 10413 in United States United States
Week rank: 44 Up7 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

Recommendations

Example

<?php
// This is an example of how to use class.amort.php class.

include "class.amort.php";

if (!
$amount=$_GET['amount']){ //first time set all to zero
 
$amount=0;
}
if (!
$rate=$_GET['rate']){
 
$rate=0;
}
if (!
$years=$_GET['years']){
 
$years=0;
}
$am=new amort($amount,$rate,$years); //make an instance of amort and set the numbers
$am->showForm(); //show the form to get the numbers
if($amount*$rate*$years <>0){ //if any one is zero, don't show the table
$am->showTable(true); //if true, show table, else don't
}
?>


Screenshots (1)  
  • amort.jpg
  Files folder image Files (3)  
File Role Description
Plain text file amort.php Example Example for amort class
Plain text file class.amort.php Class The amort class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,311
This week:0
All time:1,685
This week:53Up
 User Ratings  
 
 All time
Utility:92%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:92%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:775