PHPackages                             kaurikk/loan-amount-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. kaurikk/loan-amount-calculator

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

kaurikk/loan-amount-calculator
==============================

\[Loan amount calculator library\]

0.0.3(8y ago)3596MITPHPPHP &gt;=7.1

Since Mar 1Pushed 8y agoCompare

[ Source](https://github.com/kaurikk/loan-amount-calculator)[ Packagist](https://packagist.org/packages/kaurikk/loan-amount-calculator)[ RSS](/packages/kaurikk-loan-amount-calculator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b21576443385804f4c73f7f7859cb880d9b49e064ceb2f05eca5db01322909a0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d616d6f756e742d63616c63756c61746f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-amount-calculator/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/8339eedab564cbb875d517323507b85713aa7dce61108757776d83fe5247bc32/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d616d6f756e742d63616c63756c61746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-amount-calculator/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/b9888bd952d74f1a77e5450f01546b2b52055c5be8bc0ca6d0d2232d62106546/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d616d6f756e742d63616c63756c61746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-amount-calculator/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/dac154b43e066304006761b9f21486ea71476731643d13d0a0938be866190258/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66633962333363652d353566612d346333612d386138322d6563656635663033636261392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/fc9b33ce-55fa-4c3a-8a82-ecef5f03cba9)

loan-amount-calculator
======================

[](#loan-amount-calculator)

Library for calculating loan interest, payment amounts. Contains 2 main parts:

- Interest calculator
- Payment amount calculator (supports annuity and equal principal payments)

Basic usage
-----------

[](#basic-usage)

### Interest calculator

[](#interest-calculator)

```
// Rate for 30 days
$yearlyInterestRate = 360;
$ratePerPeriod = $yearlyInterestRate / 360 * 30;
// Present value from where interest is calculated
$presentValue = 5000;

$calculator = new InterestAmountCalculator();
$interestAmount = $calculator->getInterestAmount($presentValue, $ratePerPeriod);

echo $interestAmount; // 1500
```

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Total

3

Last Release

3251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1f1307c92c36d8ba3c920e818cd21370ba97b63c9bc9914ae4e61d5955de2b5?d=identicon)[kaurikk](/maintainers/kaurikk)

---

Top Contributors

[![kaurikk](https://avatars.githubusercontent.com/u/4194333?v=4)](https://github.com/kaurikk "kaurikk (18 commits)")

---

Tags

loanphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kaurikk-loan-amount-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/kaurikk-loan-amount-calculator/health.svg)](https://phpackages.com/packages/kaurikk-loan-amount-calculator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
