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.0CI failing

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 3w ago

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 31% 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

1910d 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-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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