PHPackages                             centralapps/mortgage-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. centralapps/mortgage-calculator

ActiveLibrary

centralapps/mortgage-calculator
===============================

A class for calculating remaining amounts on a mortgage

161567PHP

Since Jun 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mkpeacock/PHP-Mortgage-Calculator)[ Packagist](https://packagist.org/packages/centralapps/mortgage-calculator)[ RSS](/packages/centralapps-mortgage-calculator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Mortgage Calculator
=======================

[](#php-mortgage-calculator)

Calculates monthly repayment and monthly interest-only costs for a mortgage.

Example
-------

[](#example)

```
require_once 'vendor/autoload.php';
$calculator = new CentralApps\MortgageCalculator\Calculator();
$calculator->setAmountBorrowed( 125000 );
$calculator->setInterestRate( 6 );
$calculator->setYears( 25 );
echo 'Monthly repayment costs £' . $calculator->calculateRepayment() . PHP_EOL;
echo 'Monthly interest-only costs £' . $calculator->calculateInterestOnlyPayment() . PHP_EOL;

```

Change log
----------

[](#change-log)

- Cleaned up some code, added composer.json support
- Initial version of the library

Todo
----

[](#todo)

- Abstract mortgage to a separate class, support calculating things like repayment time left, total repayment amount, and so on

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6132ed4ce3683ee41415742612934b9b6e521288782316250a7ede778711f8bf?d=identicon)[mkpeacock](/maintainers/mkpeacock)

---

Top Contributors

[![mkpeacock](https://avatars.githubusercontent.com/u/437037?v=4)](https://github.com/mkpeacock "mkpeacock (2 commits)")

### Embed Badge

![Health badge](/badges/centralapps-mortgage-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/centralapps-mortgage-calculator/health.svg)](https://phpackages.com/packages/centralapps-mortgage-calculator)
```

PHPackages © 2026

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