PHPackages                             reeyanto/moora - 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. reeyanto/moora

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

reeyanto/moora
==============

MOORA algorithm implementation in PHP

v1.0.1(2mo ago)03MITPHPPHP ^8.1

Since May 15Pushed 2mo agoCompare

[ Source](https://github.com/reeyanto/moora)[ Packagist](https://packagist.org/packages/reeyanto/moora)[ RSS](/packages/reeyanto-moora/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Moora
=====

[](#moora)

Library PHP yang mengimplementasikan algoritma MOORA (Multi-Objective Optimization on the basis of Ratio Analysis) sebagai sistem pendukung keputusan.

Instalasi
---------

[](#instalasi)

Install melalui perintah terminal:

```
composer require reeyanto/moora
```

Lalu panggil autoload di skrip Anda:

```
require __DIR__ . '/vendor/autoload.php';

use Reeyanto\Moora\Moora;

$moora = new Moora();
```

Contoh Penggunaan
-----------------

[](#contoh-penggunaan)

Contoh berikut penggunaan kelas Moora.

```
use Riyanto\Moora\Moora;

$moora = new Moora();

/**
 * Tambah kriteria
 */
$moora
    ->addCriteria('price', 0.3, 'cost')
    ->addCriteria('quality', 0.4, 'benefit')
    ->addCriteria('features', 0.3, 'benefit');

/**
 * Tambah alternatif
 */
$moora
    ->addAlternative('Produk A', [
        'price' => 300,
        'quality' => 80,
        'features' => 70,
    ])
    ->addAlternative('Produk B', [
        'price' => 250,
        'quality' => 75,
        'features' => 85,
    ])
    ->addAlternative('Produk C', [
        'price' => 400,
        'quality' => 90,
        'features' => 95,
    ]);

/**
 * Hitung hasil
 */
$result = $moora->calculate();

print_r($result);
```

Output
------

[](#output)

Contoh hasil luaran:

```
Array
(
    [0] => Array
        (
            [alternative] => Produk C
            [score] => 0.4012
            [rank] => 1
        )

    [1] => Array
        (
            [alternative] => Produk B
            [score] => 0.3551
            [rank] => 2
        )

    [2] => Array
        (
            [alternative] => Produk A
            [score] => 0.3014
            [rank] => 3
        )
)
```

Lisensi
-------

[](#lisensi)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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 ~2 days

Total

2

Last Release

70d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17137623?v=4)[Riyanto](/maintainers/reeyanto)[@reeyanto](https://github.com/reeyanto)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/reeyanto-moora/health.svg)

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

###  Alternatives

[bbrala/php7-ereg-shim

Shim for ereg functions

12104.4k](/packages/bbrala-php7-ereg-shim)

PHPackages © 2026

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