PHPackages                             romulodl/kama - 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/kama

ActiveLibrary

romulodl/kama
=============

Kama without the PECL trader extension

v1.0.0(4y ago)291Apache-2.0PHP

Since Jul 6Pushed 4y ago1 watchersCompare

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

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

Kaufman Adaptative Moving Average
=================================

[](#kaufman-adaptative-moving-average)

Calculate the KAMA of giving values.

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

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

[](#instalation)

```
composer require romulodl/kama

```

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

Usage
-----

[](#usage)

```
$kama = new Romulodl\Kama();
$kama->calculate(
  array $values,
  int $period = 7,
  int $fastEma = 2,
  int $slowEma = 30
);
```

For example:

```
$kama = new Romulodl\Kama();
$kama->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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

1775d 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-kama/health.svg)

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

PHPackages © 2026

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