PHPackages                             ocs/wplib - 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. ocs/wplib

ActiveLibrary

ocs/wplib
=========

Library SPK

029PHP

Since Jul 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kristt26/wplib)[ Packagist](https://packagist.org/packages/ocs/wplib)[ RSS](/packages/ocs-wplib/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

wplib
=====

[](#wplib)

Installation
------------

[](#installation)

Anda dapat melakukan instalasi melalui Composer di

Requirements
------------

[](#requirements)

1. PHP 5.4 or greater
2. CodeIgniter 3.0+

Documentation
-------------

[](#documentation)

```
require "vendor/autoload.php";

use ocs\wplib\Wplibs as wp;
$kriteria = [
    [
        'nama' => 'Kecepatan',
        'kode' => 'C1',
        'bobot' => 4,
        'type' => 'Benefits'
    ],
    [
        'nama' => 'Tahun Aktif',
        'kode' => 'C2',
        'bobot' => 3,
        'type' => 'Benefits'
    ],
    [
        'nama' => 'Tanggal Bayar',
        'kode' => 'C3',
        'bobot' => 2,
        'type' => 'Benefits'
    ]
];
$alternatif = [
    [
        "nama" => "Nama1",
        "nilai" => [
            [
                "kode" => "C1",
                "bobot" => 5
            ],
            [
                "kode" => "C2",
                "bobot" => 3
            ],
            [
                "kode" => "C3",
                "bobot" => 1
            ]
        ]
    ],
    [
        "nama" => "Nama2",
        "nilai" => [
            [
                "kode" => "C1",
                "bobot" => 4
            ],
            [
                "kode" => "C2",
                "bobot" => 2
            ],
            [
                "kode" => "C3",
                "bobot" => 2
            ]
        ]
    ],
    [
        "nama" => "Nama3",
        "nilai" => [
            [
                "kode" => "C1",
                "bobot" => 3
            ],
            [
                "kode" => "C2",
                "bobot" => 3
            ],
            [
                "kode" => "C3",
                "bobot" => 4
            ]
        ]
    ]
];

$a = new wp($kriteria, $alternatif, 0);
echo json_encode($a->ranking);
```

---

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b92bb370b34d3c57debdd50d0aedf6fee696f0db7c41552455778c26d761118?d=identicon)[kristt26](/maintainers/kristt26)

---

Top Contributors

[![kristt26](https://avatars.githubusercontent.com/u/28567198?v=4)](https://github.com/kristt26 "kristt26 (8 commits)")

### Embed Badge

![Health badge](/badges/ocs-wplib/health.svg)

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

PHPackages © 2026

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