techlify / mortgage-module
A mortgage calculator package, which exposes API for simple mortgage calculation
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel-module
This package is auto-updated.
Last update: 2025-03-24 05:28:02 UTC
README
A mortgage calculator package, which exposes API for simple mortgage calculation.
Installation
- composer require joshbrw/laravel-module-installer
- composer require techlify/mortgage-module
Usage
Exposes the following POST API for mortgage calculation and amoritization.
Route::post('/mortgage', 'MortgageController@mortgage'); Route::post('/amortization', 'MortgageController@amortization'); Route::post('/personalized-report', 'MortgageController@report');
Mortgage
Calculate the mortgage for the given model.
Request body:
{
"loanAmount":number,
"rpa":number,
"loanTerm":number,
"extraAmount"?:number,
"downPayment"?:number
}
Amortization
Calculate the amortization schedule for the given model
Request body:
{
"loanAmount":number,
"rpa":number,
"loanTerm":number,
"extraAmount"?:number,
"downPayment"?:number
}
Report
Calculate the amortization schedule for the given model and email it to logged in user.
Request body:
{
"loanAmount":number,
"rpa":number,
"loanTerm":number,
"extraAmount"?:number,
"downPayment"?:number
}