PHP Classes

Amort: Calculate and display loan amortization schedule

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 2,306 All time: 1,690 This week: 93Up
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: 77
All time rank: 10413 in United States United States
Week rank: 346 Down46 in United States United States Down
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  
  • amort.jpg
  Files folder image Files  
File Role Description
Plain text file amort.php Example Example for amort class
Plain text file class.amort.php Class The amort class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,306
This week:0
All time:1,690
This week:93Up
 User Ratings  
 
 All time
Utility:92%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:92%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:822