This project is not covered by Drupal’s security advisory policy.
Election Condorcet integrates the open-source Condorcet PHP voting engine (julien-boudry/condorcet) with the Election module's #[ElectionMethod] plugin system.
By keeping complex electoral mathematics in a dedicated companion module, the core Election framework remains lightweight and library-agnostic while giving organisations access to ranked-choice and proportional representation voting methods.
Features
- Single Transferable Vote (
condorcet:stv): Multi-winner proportional representation supporting Droop, Hare, Hagenbach-Bischoff, and Imperiali quotas, configurable surplus transfer rulesets (Scottish STV at 5 decimal places, ERS97 at 2 decimal places, or standard 9 decimal places), full stage-by-stage audit output, and configurable tie-breaking. - Instant-Runoff Voting (
condorcet:irv): Single-winner ranked preference voting with sequential elimination rounds, exhausted ballot handling, and prior-round / Condorcet pairwise tie narrowing. - First Preference Plurality (
condorcet:plurality): Single- and multi-seat plurality / FPTP calculation with majority threshold reporting. - Cross-Position Redistribution: Supports excluding candidates elected to higher-priority posts (
excluded_candidates/prior_results) so voter preferences transfer cleanly across multi-post ballots. - Extensible Base Plugin: Built on
CondorcetBase, allowing custom or contributed modules to expose additional algorithms supported by Condorcet PHP (such as Schulze, Ranked Pairs, Copeland, or Borda). - Auditable Results: Works seamlessly with Election 3.x's hash-chained vote records, deterministic result hashing, scrutineer certification, and
.bltballot export for independent verification.
Branches & Requirements
Both branches target Drupal 11+ (^11 || ^12) and Election 3.x (^3.0):
| Branch | PHP Requirement | Condorcet PHP Version | Recommended For |
|---|---|---|---|
1.0.x |
PHP >= 8.3 | julien-boudry/condorcet: ^4.7 |
Sites running PHP 8.3 (also compatible with PHP 8.4) |
2.0.x |
PHP >= 8.4 | julien-boudry/condorcet: ^5.0 |
Sites running PHP 8.4+ |
Installation
Because this module depends on the third-party julien-boudry/condorcet PHP library, it must be installed with Composer:
composer require drupal/election_condorcet drush en election_condorcet
Configuration
Once enabled, the Condorcet calculation methods (Single Transferable Vote, Instant-runoff, and First preference plurality) automatically appear as selectable election methods when configuring Election Question entities in the Election module.
Related Projects
- Election (required core framework, 3.x branch)
- Condorcet PHP (underlying voting calculation library)
Project information
- Project categories: Integrations
- Ecosystem: Election
- Created by dwkitchen on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

