a calculator of bank loan

v2.2.0 2016-09-07 11:59 UTC

This package is auto-updated.

Last update: 2024-04-22 13:22:40 UTC


README

Join the chat at https://gitter.im/bankloan/Lobby

Amortization Schedule Calculator

Build Status Code Coverage Latest Stable Version Total Downloads license

##Installation

Use Composer to install the library.

$ composer require jiangbianwanghai/bankloan

##Usage

<?php
require_once __DIR__.'/vendor/autoload.php';
use Jiangbianwanghai\BankLoan\BankLoan;
$bl = new BankLoan(['loanAmount' => 100000, 'year' => 10]);
var_dump($bl->getELP()); // Get equal loan payments result.
var_dump($bl->getEPP()); // Get equal principal payments result.

##Note

Now only supports China。

##License The MIT License (MIT). Please see License File for more information.