PHPackages                             springy-framework/installment-calc - 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. springy-framework/installment-calc

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

springy-framework/installment-calc
==================================

PHP installment calculator with interest rate

v1.0.0(5y ago)2191MITPHPPHP &gt;=7.3

Since Dec 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/springy-framework/installment-calc)[ Packagist](https://packagist.org/packages/springy-framework/installment-calc)[ RSS](/packages/springy-framework-installment-calc/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

PHP Installment Interest and Future Value Calculator
====================================================

[](#php-installment-interest-and-future-value-calculator)

This class can calculate the amount of installments on loans.

It can take as parameters the loan amount, the interest rate and the identification of the method to use to calculate the installments.

The class can returns the values related with installment payments like the total amount or the interest amount to be returned after a given number of months.

[![Latest Stable Version](https://camo.githubusercontent.com/9ea27f1de176a8b5dc75351e6bc6def3395dcd5ebb3b8f3afadc5356ce5dc02a/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f696e7374616c6c6d656e742d63616c632f762f737461626c65)](https://packagist.org/packages/springy-framework/installment-calc)[![tests](https://github.com/springy-framework/installment-calc/actions/workflows/php.yml/badge.svg)](https://github.com/springy-framework/installment-calc/actions/workflows/php.yml)[![Build Status](https://camo.githubusercontent.com/f76bffed3d63aad9e555c68d6efe7d75c9e10f721c55ca2387b7d36c0f253e6e/68747470733a2f2f7472617669732d63692e636f6d2f737072696e67792d6672616d65776f726b2f696e7374616c6c6d656e742d63616c632e7376673f6272616e63683d6d61696e)](https://travis-ci.com/springy-framework/installment-calc)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![StyleCI](https://camo.githubusercontent.com/a6b83fbd5b79d67a1e09435641764477490b1e5230498435411b6cf00d30b78f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3332333435383935342f736869656c643f7374796c653d666c6174)](https://github.styleci.io/repos/323458954)[![Total Downloads](https://camo.githubusercontent.com/172283c095b0ef1ab9bb76a4d64f2699ec31694103d9e32ba929c8c2f4ade182/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f696e7374616c6c6d656e742d63616c632f646f776e6c6f616473)](https://packagist.org/packages/springy-framework/installment-calc)[![License](https://camo.githubusercontent.com/e6580ceedac42a51872bf15d8e2c530b99ebf070ccc8226c4a6ecc0c9e5c199c/68747470733a2f2f706f7365722e707567782e6f72672f737072696e67792d6672616d65776f726b2f696e7374616c6c6d656e742d63616c632f6c6963656e7365)](https://packagist.org/packages/springy-framework/installment-calc)

Requirements
------------

[](#requirements)

- PHP 7.3+

Instalation
-----------

[](#instalation)

To get the latest stable version of this component use:

```
"require": {
    "springy-framework/installment-calc": "*"
}
```

in your composer.json file.

Usage
-----

[](#usage)

I suppose that the following example is all you need:

```
