PHPackages                             zwei/loan-calculator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zwei/loan-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zwei/loan-calculator
====================

The loan calculator package.

v1.0.2(8y ago)131816[1 issues](https://github.com/qq1060656096/loan-calculator/issues)MITPHPPHP &gt;=5.4

Since Mar 26Pushed 7y ago2 watchersCompare

[ Source](https://github.com/qq1060656096/loan-calculator)[ Packagist](https://packagist.org/packages/zwei/loan-calculator)[ Docs](https://github.com/qq1060656096/loan-calculator)[ RSS](/packages/zwei-loan-calculator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

zwei/loan-calculator 包
======================

[](#zweiloan-calculator-包)

> 贷款计算器, 生成还款和回款计划, 支持任意精度的数字

支持还款方式
------

[](#支持还款方式)

还款方式是否支持等额本金支持等额本息支持每月还息到期还本支持一次性还本付息支持安装前准备
-----

[](#安装前准备)

> 1. php5.4以上版本
> 2. bcmath扩展
> 3. 创建composer.json文件,并写入以下内容:

```
{
  "require": {
    "zwei/loan-calculator": "dev-master"
  }
}
```

> 4. 执行composer install

计算器

使用示例(use)
---------

[](#使用示例use)

> 1. 例如项目目录在"E:\\web\\php7\\test"
> 2. 创建index.php,并加入以下内容

```
