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

ActiveLibrary

romulodl/jma
============

JMA without the PECL trader extension

v2.1.0(5y ago)13213Apache-2.0PHP

Since Oct 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/romulodl/jma)[ Packagist](https://packagist.org/packages/romulodl/jma)[ RSS](/packages/romulodl-jma/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Jurik Moving Average
====================

[](#jurik-moving-average)

Calculate the JMA of giving values.

[![Jma](https://github.com/romulodl/jma/workflows/Jma/badge.svg)](https://github.com/romulodl/jma/workflows/Jma/badge.svg)

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

[](#instalation)

```
composer require romulodl/jma

```

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

Usage
-----

[](#usage)

```
$jma = new Romulodl\Jma();
$jma->calculate(
  array $values,
  int $period = 7,
  int $phase = 50,
  float $power = 2
);
```

For example:

```
$jma = new Romulodl\Jma();
$jma->calculate([10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
```

You would normally give a larger period to add smoothness to the result.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

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

Every ~26 days

Total

3

Last Release

1971d ago

Major Versions

v1.0.0 → v2.0.02020-12-19

### 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 (5 commits)")

---

Tags

tradetrading

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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