PHPackages                             mhiggster/laravel-mortgage - 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. mhiggster/laravel-mortgage

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

mhiggster/laravel-mortgage
==========================

mortgage-loan

v0.1.1(6y ago)153563[3 issues](https://github.com/Mhiggster/laravel-mortgage/issues)MITPHP

Since Sep 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Mhiggster/laravel-mortgage)[ Packagist](https://packagist.org/packages/mhiggster/laravel-mortgage)[ RSS](/packages/mhiggster-laravel-mortgage/feed)WikiDiscussions master Synced 1mo ago

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

LaravelMortgage
---------------

[](#laravelmortgage)

[![Latest Stable Version](https://camo.githubusercontent.com/e9fee669716ef8ecf67b6d53863bc71b9aac4c093abf4096bd687e5acb466f09/68747470733a2f2f706f7365722e707567782e6f72672f6d68696767737465722f6c61726176656c2d6d6f7274676167652f76657273696f6e)](https://packagist.org/packages/mhiggster/laravel-mortgage)[![Total Downloads](https://camo.githubusercontent.com/715d55884896e1206b2274a146e54d700c2d35019f41322b8fd5caf1011878a8/68747470733a2f2f706f7365722e707567782e6f72672f6d68696767737465722f6c61726176656c2d6d6f7274676167652f646f776e6c6f616473)](https://packagist.org/packages/mhiggster/laravel-mortgage)[![Latest Unstable Version](https://camo.githubusercontent.com/f1256371313d3b18e8df9a3d13eff2b1b2b2d0c947a1334d6e7fd480ee843634/68747470733a2f2f706f7365722e707567782e6f72672f6d68696767737465722f6c61726176656c2d6d6f7274676167652f762f756e737461626c65)](//packagist.org/packages/mhiggster/laravel-mortgage)[![License](https://camo.githubusercontent.com/1eb1e9868292850ade70a67ad98673be86b6fcd314b3449613433331a722def1/68747470733a2f2f706f7365722e707567782e6f72672f6d68696767737465722f6c61726176656c2d6d6f7274676167652f6c6963656e7365)](https://packagist.org/packages/mhiggster/laravel-mortgage)

A simple mortgage calculator for Laravel. Laravel-mortgage allows you to calculate the mortgage in two ways:

#### Annuity

[](#annuity)

An annuity is a series of payments made at equal intervals. Examples of annuities are regular deposits to a savings account, monthly home mortgage payments, monthly insurance payments and pension payments. Annuities can be classified by the frequency of payment dates.

#### Differentiated payment

[](#differentiated-payment)

Differentiated payment - this is an unequal monthly tranche proportionally reduced during the loan term. The largest payments - in the fourth quarter. “Median” payments are usually comparable to annuities.

Installation
------------

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

```
composer require mhiggster/laravel-mortgage

```

Add a new line to the `providers` array:

```
Mortgage\MortgageServiceProvider::class,

```

And optionally add a new line to the `aliases` array:

```
'DifferentiatedPayment' => Mortgage\Facades\DifferentiatedPayment::class,
'Annuity' => Mortgage\Facades\Annuity::class,

```

And then publish the config file

```
php artisan vendor:publish --provider="Mortgage\MortgageServiceProvider"

```

Now you're ready to start using the laravel-mortgage in your application.

Overview
--------

[](#overview)

Look at one of the following topics to learn more about LaravelMortgage

- [Usage](#usage)
- [Example](#example)
- [Change log](#Change-log)
- [License](#license)

Usage
-----

[](#usage)

the Mortgage gives you two facades: `Annuity` and `Differentiated`These facades gives you the following methods to use:

### Annuity::getLoanTerm()

[](#annuitygetloanterm)

Simple getter which retrieves the loan term. Period for which the debtor must repay the loan

```
Annuity::getLoanTerm() // 48
```

### Annuity::getLoanAmount()

[](#annuitygetloanamount)

Simple getter which retrieves the loan amount. The method allows you to find out how much the debtor took a loan

```
Annuity::getLoanAmount() // 8000000
```

### Annuity::getInterestRate()

[](#annuitygetinterestrate)

Simple getter which retrieves the interest rate. at what interest rate did the lender give a loan

```
Annuity::getInterestRate() // 18
```

### Annuity::getMainDept()

[](#annuitygetmaindept)

Simple getter which retrieves the main dept. You can round them as you want

```
Annuity::getMainDept() // 166666.66666667
```

### Annuity::showRepaymentSchedule()

[](#annuityshowrepaymentschedule)

This method returns a collection, which helps to find out `termInMonth`, `totoalDept`, `percentDept`, `mainDept`, `indebtedness` using this data you can build a repayment schedule. an example you can see below

```
Annuity::showRepaymentSchedule()
```

### Annuity::getPercentAmount()

[](#annuitygetpercentamount)

Amount accrued as a percentage

```
Annuity::getPercentAmount()
```

### Annuity::effectiveRate()

[](#annuityeffectiverate)

The effective annual interest rate is the interest rate that is actually earned or paid on an investment.

```
Annuity::effectiveRate()
```

### Annuity::getTotalamount()

[](#annuitygettotalamount)

The total amount payable to the debtor

```
Annuity::getTotalamount()
```

### Annuity::setViscera(48, 8000000, 18)

[](#annuitysetviscera48-8000000-18)

If you want to use your own data

```
Annuity::setViscera(48, 8000000, 18)
```

Similarly, all of these methods are available on the Differentiated facade.

Example
-------

[](#example)

Below is a little example of how to list the cart content in a table:

```
 // Display the content in a View.

            Term in month
            Totoal dept
            Percent dept
            Main dept
            Indebtedness

        @foreach(Annuity::showRepaymentSchedule() as $row)

                {{ termInMonth }}
                {{ totoalDept }}
                {{ percentDept }}
                {{ mainDept }}
                {{ indebtedness }}

        @endforeach

```

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

[](#change-log)

Detailed changes for each release [changelog](https://github.com/Mhiggster/laravel-mortgage/blob/master/changelog.md)

License
-------

[](#license)

[MIT](https://github.com/Mhiggster/laravel-mortgage/blob/master/LICENSE)

Copyright (c) 2019-present, Miras Nurmukhanbetov

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2415d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8530db545f9366004f2c2ae4aa63b57209c31709e7b833306a7fd064810df0e0?d=identicon)[mirazhhi](/maintainers/mirazhhi)

---

Tags

laravelmortgage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mhiggster-laravel-mortgage/health.svg)

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

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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