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

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

kaurikk/loan-payment-calculator
===============================

Loan payment calculation library

0.0.3(9y ago)45011[1 issues](https://github.com/kaurikk/loan-payment-calculator/issues)MITPHPPHP &gt;=7.1

Since Mar 3Pushed 7y agoCompare

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

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

[![Build Status](https://camo.githubusercontent.com/1c813fbfa546eee80e81c7b2fe417011b73d8bfbeb762bf09b66993020801448/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d7061796d656e742d63616c63756c61746f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-payment-calculator/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/91ff6fcee83f0305a252bfe1cd69a7f09c450e0ca60ae27a27c07936e6ecdebe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d7061796d656e742d63616c63756c61746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-payment-calculator/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/cd29a5e6de39baa624de46ee48817ef018b10c45a6e7517e4405a9151519da46/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b617572696b6b2f6c6f616e2d7061796d656e742d63616c63756c61746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaurikk/loan-payment-calculator/?branch=master) [![SensioLabsInsight](https://camo.githubusercontent.com/25de9a545a10cefb7f5014fdb1b0782baf15d39466052b2a9681063bf8e390b8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35336534616563372d626130652d343039392d623661652d3935363564386364313034352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/53e4aec7-ba0e-4099-b6ae-9565d8cd1045)

loan-payment-calculator
=======================

[](#loan-payment-calculator)

Library to calculate full loan payments (with dates, periods, principal and interest amounts).

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

[](#basic-usage)

```
// $paymentAmountCalculator is instance of PaymentAmountCalculatorInterface
// $interestAmountCalculator is instance of InterestAmountCalculatorInterface
$calculator = new PaymentsCalculator($paymentAmountCalculator, $interestAmountCalculator);

$periods = $paymentPeriods; // must be instance of PaymentPeriodsInterface
$principal = 2000;
$interestRate = 20;
$calculationMode = 1; // see PaymentPeriodsInterface for available modes
$futureValue = 0; // Expected value after loan end, usually 0

$payments = $calculator->calculatePayments($periods, $principal, $interestRate, $calculationMode, $futureValue);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~28 days

Total

3

Last Release

3300d 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 (22 commits)")[![ngfw](https://avatars.githubusercontent.com/u/203863?v=4)](https://github.com/ngfw "ngfw (2 commits)")

---

Tags

loanphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[klepak/nova-dynamic-page-title

Dynamically updates Laravel Nova page title based on data from Vue router.

11154.8k](/packages/klepak-nova-dynamic-page-title)

PHPackages © 2026

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