PHPackages                             romulodl/rvi - 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. romulodl/rvi

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

romulodl/rvi
============

calculate Relative Vigor Index

v1.0.0(6y ago)0111Apache-2.0PHPCI failing

Since Jun 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/romulodl/rvi)[ Packagist](https://packagist.org/packages/romulodl/rvi)[ RSS](/packages/romulodl-rvi/feed)WikiDiscussions master Synced today

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

Relative Vigor Index
====================

[](#relative-vigor-index)

[![Relative Vigor Index](https://github.com/romulodl/rvi/workflows/Relative%20Vigor%20Index/badge.svg)](https://github.com/romulodl/rvi/workflows/Relative%20Vigor%20Index/badge.svg)

Calculate the Relative Vigor Index (RVI) of given values.

Instalation
-----------

[](#instalation)

```
composer require romulodl/rvi

```

or add `romulodl/rvi` to your `composer.json`. Please check the latest version in releases.

Usage
-----

[](#usage)

```
$rvi = new Romulodl\Rvi();
$rvi->calculate(array $ohlc_values); // [open, high, low, close]
//returns array [rvi value, signal value]
```

Example of use:

```
$rvi = new Romulodl\Rvi();
$rvi->calculate([
[9994.74,10045.03,9726.00,9807.49],
[9809.63,9923.98,9528.23,9550.67],
[9550.25,9580.00,7940.00,8719.53],
[8723.23,9164.00,8151.12,8561.09],
[8560.73,8981.00,8520.43,8808.71],
[8808.71,9397.00,8790.04,9305.91],
[9305.91,9950.00,9250.66,9786.80],
[9787.62,9843.50,9100.00,9310.73],
[9311.21,9585.00,9210.03,9374.99],
[9374.99,9880.00,9317.16,9678.57],
[9677.31,9958.67,9450.00,9731.10],
[9731.11,9900.00,9462.00,9773.64],
[9772.66,9838.00,9281.42,9508.11],
[9508.00,9573.00,8812.20,9060.00],
[9060.00,9259.38,8920.00,9166.40],
[9166.43,9300.00,9076.90,9176.41],
[9176.32,9294.44,8674.00,8711.37],
[8711.37,8977.00,8623.38,8895.65],
[8895.66,9011.82,8693.18,8837.05],
]);
```

Why did you do this?
--------------------

[](#why-did-you-do-this)

The PECL Trading extension is crap and not everyone wants to install it. I am building a trading bot which will need the RVI value as part of the calculation.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

2253d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/727de2473b3f8e612546e83f5831779cd5928b4af8ed6ca3f91a533b522b7a0a?d=identicon)[romulodl](/maintainers/romulodl)

---

Top Contributors

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

---

Tags

tradetrading

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/romulodl-rvi/health.svg)

```
[![Health](https://phpackages.com/badges/romulodl-rvi/health.svg)](https://phpackages.com/packages/romulodl-rvi)
```

###  Alternatives

[nonsapiens/realaddressfactory

Creates real-world street addresses from Google Maps, to use in database seeding, unit tests, or anything else. Supports Laravel 11+, and Faker

5211.9k8](/packages/nonsapiens-realaddressfactory)

PHPackages © 2026

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