PHPackages                             mieuxvoter/majority-judgment - 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. mieuxvoter/majority-judgment

ActiveLibrary

mieuxvoter/majority-judgment
============================

Deliberate your polls using Majority Judgment with a fast, robust, interface-oriented and scalable algorithm.

1.0.3(4y ago)61061[1 issues](https://github.com/MieuxVoter/majority-judgment-library-php/issues)[1 PRs](https://github.com/MieuxVoter/majority-judgment-library-php/pulls)MITPHPPHP &gt;=7.4.0

Since Mar 15Pushed 4y ago6 watchersCompare

[ Source](https://github.com/MieuxVoter/majority-judgment-library-php)[ Packagist](https://packagist.org/packages/mieuxvoter/majority-judgment)[ RSS](/packages/mieuxvoter-majority-judgment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Majority Judgment PHP Library
=============================

[](#majority-judgment-php-library)

Deliberate majority judgment polls ⚖.

Features
--------

[](#features)

- Majority judgment deliberation from merit profiles
- Score based, efficiency should scale well (algo is parallelizable)
- Interface-oriented, test-driven code
- Extensible to get other judgments (usual, central, etc.)
- Made by [MieuxVoter](https://mieuxvoter.fr)'s volunteers

Usage example
-------------

[](#usage-example)

Require it in your own project, using composer:

```
composer require mieuxvoter/majority-judgment

```

Use it:

```
use MieuxVoter\MajorityJudgment\MajorityJudgmentDeliberator;
use MieuxVoter\MajorityJudgment\Model\Settings\MajorityJudgmentSettings;
use MieuxVoter\MajorityJudgment\Model\Tally\ArrayPollTally;

$tally = new ArrayPollTally([
    'Proposal A' => [1, 1, 4, 3, 7, 4, 1], // amount of judgments for each grade
    'Proposal B' => [0, 2, 4, 6, 4, 2, 3], // (worst grade to best grade)
]);

$deliberator = new MajorityJudgmentDeliberator();

$result = $deliberator->deliberate($tally);
// $result is a PollResultInterface

foreach($result->getProposalResults() as $proposalResult) {
    // … Do something
    print($proposalResult->getProposal());
    print($proposalResult->getRank());
}
```

Interface-oriented
------------------

[](#interface-oriented)

Any object implementing `PollTallyInterface` may be used as input.

### Testing

[](#testing)

See the tests in `test/`.

```
composer install --dev
vendor/phpunit/phpunit/phpunit -v test

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

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

4

Last Release

1802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df9f5ea1e10684817179ae0a9dde299b7a8e820a4173576931d6a5340e634536?d=identicon)[domi41](/maintainers/domi41)

---

Top Contributors

[![domi41](https://avatars.githubusercontent.com/u/24573513?v=4)](https://github.com/domi41 "domi41 (16 commits)")

---

Tags

electionmajority-judgmentphp-librarypolitical-sciencepoll

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mieuxvoter-majority-judgment/health.svg)

```
[![Health](https://phpackages.com/badges/mieuxvoter-majority-judgment/health.svg)](https://phpackages.com/packages/mieuxvoter-majority-judgment)
```

PHPackages © 2026

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