PHPackages                             cyborgfinance/ltv-calculator-laravel - 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. cyborgfinance/ltv-calculator-laravel

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

cyborgfinance/ltv-calculator-laravel
====================================

Loan to Value (LTV) Calculator for Laravel.

1.0.1(5y ago)06MITPHPPHP ^7.0||^8.0

Since Apr 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/CyborgFinance/ltv-calculator-laravel)[ Packagist](https://packagist.org/packages/cyborgfinance/ltv-calculator-laravel)[ Docs](https://github.com/cyborgfinance/ltv_calculator_laravel)[ GitHub Sponsors](https://github.com/CyborgFinance)[ RSS](/packages/cyborgfinance-ltv-calculator-laravel/feed)WikiDiscussions master Synced yesterday

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

Loan to Value (LTV) Calculator for Laravel.
===========================================

[](#loan-to-value-ltv-calculator-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3205ada5a1b0c55f567743ee30ea9c0fe2900bf4e4b8093f56c3529144595932/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6379626f726766696e616e63652f6c74765f63616c63756c61746f725f6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cyborgfinance/ltv_calculator_laravel)[![Total Downloads](https://camo.githubusercontent.com/f8ae55731b2af228d92bcb2e248c14fb5a689f2a659c10bf790ef67b52c7bbca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6379626f726766696e616e63652f6c74765f63616c63756c61746f725f6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cyborgfinance/ltv_calculator_laravel)

Loan to Value (LTV) Calculator for Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require cyborgfinance/ltv-calculator-laravel
```

Usage
-----

[](#usage)

```
namespace App\Http\Controllers;

use Cyborgfinance\ltvCalculator\ltvCalculator;

class Testing extends Controller
{

  public function __invoke()
  {

    $ltvCalculator = new ltvCalculator();
    $output = $ltvCalculator->setValue(200)->setDeposit(100)->calculate();

    dd($output);
  }
}
```

### Other Methods

[](#other-methods)

Useing many variations of 2 of the 4 variables (value, deposit, loan, ltv) you can calculate the remaining 2.

```
//Calculate from Value & Deposit
$ltvCalculator = new ltvCalculator();
$output = $ltvCalculator->setValue(200000)->setDeposit(150000)->calculate();
```

```
//Calculate from Value & Loan
$ltvCalculator = new ltvCalculator();
$output = $ltvCalculator->setValue(200000)->setLoan(50000)->calculate();
```

```
//Calculate from Value & LTV
$ltvCalculator = new ltvCalculator();
$output = $ltvCalculator->setValue(200000)->setLtv(75)->calculate();
```

```
//Calculate from Loan & LTV
$ltvCalculator = new ltvCalculator();
$output = $ltvCalculator->setLoan(5000)->setLtv(75)->calculate();
```

```
//Calculate from Deposit & LTV
$ltvCalculator = new ltvCalculator();
$output = $ltvCalculator->setDeposit(50000)->setLtv(75)->calculate();
```

The output all all of the above examples is:

```
array:5 [
  "value" => 200000.0
  "deposit" => 150000.0
  "loan" => 50000.0
  "ltv" => 75.0
  "dtv" => 25.0
]
```

### List of Setters

[](#list-of-setters)

```
$ltvCalculator = new ltvCalculator();
//List of Setters
//You only need 2 out of 4, to calculate the remaining.
$ltvCalculator->setValue($value);
$ltvCalculator->setDeposit($value);
$ltvCalculator->setLoan($value);
$ltvCalculator->setLtv($value);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- Cyborg Finance [GitHub](https://github.com/CyborgFinance), [Website](https://cyborg.finance) &amp; [Twitter](https://twitter.com/cyborgfinance)
- Adam Hosker [GitHub](https://github.com/ahosker), [Website](https://hosker.info) &amp; [Twitter](https://twitter.com/adam_hosker)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

1858d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelcalculatorCyborgFinanceLTVLoan-to-Value

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cyborgfinance-ltv-calculator-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/cyborgfinance-ltv-calculator-laravel/health.svg)](https://phpackages.com/packages/cyborgfinance-ltv-calculator-laravel)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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