PHPackages                             wead/ahpd - 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. wead/ahpd

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

wead/ahpd
=========

A modern, data-driven implementation of the Analytic Hierarchy Process (AHP) algorithm for objective, multi-criteria decision-making, replacing subjective pairwise judgments with real-world quantitative inputs.

1.0.3(6mo ago)662proprietaryHTMLPHP &gt;=8.1

Since Oct 20Pushed 6mo agoCompare

[ Source](https://github.com/weadtech/ahpd_lib)[ Packagist](https://packagist.org/packages/wead/ahpd)[ Docs](https://github.com/weadtech/ahpd_lib)[ RSS](/packages/wead-ahpd/feed)WikiDiscussions main Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

AHPd — Data-Driven Multi-Criteria Decision System
=================================================

[](#ahpd--data-driven-multi-criteria-decision-system)

[![Usage Rights](https://camo.githubusercontent.com/598952a8ed24060b6cbec9551c29c499ecb0e72ae4a627d1e58fff1aae410e80/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f55736167652d46726565253230666f72253230506572736f6e616c253230253236253230436f6d6d65726369616c2d627269676874677265656e)](https://camo.githubusercontent.com/598952a8ed24060b6cbec9551c29c499ecb0e72ae4a627d1e58fff1aae410e80/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f55736167652d46726565253230666f72253230506572736f6e616c253230253236253230436f6d6d65726369616c2d627269676874677265656e)[![Platform](https://camo.githubusercontent.com/ce52eef3346a37bf1e7846297fa0db15219f09837f956cd53620cc24fa0871c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d57696e646f77732532302537432532304c696e75782d626c7565)](https://camo.githubusercontent.com/ce52eef3346a37bf1e7846297fa0db15219f09837f956cd53620cc24fa0871c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506c6174666f726d2d57696e646f77732532302537432532304c696e75782d626c7565)[![PHP API](https://camo.githubusercontent.com/81c61ea8ebf1b171c46f0b03c3f51891ededaab771be03db3214f962109e9181/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d537570706f7274253230666f7225323054532532302532362532304e54532d626c7565)](https://camo.githubusercontent.com/81c61ea8ebf1b171c46f0b03c3f51891ededaab771be03db3214f962109e9181/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d537570706f7274253230666f7225323054532532302532362532304e54532d626c7565)[![PHP Version](https://camo.githubusercontent.com/8777f9860b5e22f70cf49064b7ca2b38beaf8028faca74221106b56b5c741748/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d382e312d627269676874677265656e)](https://camo.githubusercontent.com/8777f9860b5e22f70cf49064b7ca2b38beaf8028faca74221106b56b5c741748/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d382e312d627269676874677265656e)[![Status](https://camo.githubusercontent.com/9e968d9471725151bf93b46bcd079913754b36f39f5205ac6b0c1e18328adb7b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5374617475732d537461626c652d627269676874677265656e)](https://camo.githubusercontent.com/9e968d9471725151bf93b46bcd079913754b36f39f5205ac6b0c1e18328adb7b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5374617475732d537461626c652d627269676874677265656e)[![AHPd Core](https://camo.githubusercontent.com/e235633c279bcc885a86b354f753658c5ddf9092437515ecc3eb274a7c77188a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f41485064253230436f72652d302e312e332d707572706c65)](https://camo.githubusercontent.com/e235633c279bcc885a86b354f753658c5ddf9092437515ecc3eb274a7c77188a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f41485064253230436f72652d302e312e332d707572706c65)

**AHPd** is a **100% objective, multi-criteria decision-making system**, representing a **modern, data-driven evolution** of the classic *Analytic Hierarchy Process (AHP)* method.

Unlike traditional AHP, AHPd eliminates subjective judgment. It uses **real, measurable data** to generate business decisions that are consistently **auditable, mathematical, and justifiable**.

🎯 Strategic Advantage: Bias-Free Decisions
------------------------------------------

[](#-strategic-advantage-bias-free-decisions)

In complex and highly regulated environments, **subjectivity** is the biggest risk. AHPd was built to eliminate this risk.

The AHPd system provides a quantitative framework for comparing alternatives—be it products, projects, suppliers, or strategies—based on their quantitative attributes (price, performance, quality, resource consumption, etc.).

Key BenefitValue for Decision Makers**100% Objective Decisions**Criteria weights are mathematically derived from **real-world data**, removing human bias and politics from complex choices. **Risk Mitigation** and guaranteed *compliance*.**Full Explainability**Every result is detailed with the **percentage contribution** of each criterion and attribute. Allows for **Investment Justification** and instant result auditing.**High Consistency &amp; Reproducibility**No manual subjectivity. The same data always yields the same, fully **justifiable**, and **unquestionable** result.**High Performance (C/Rust Core)**Implemented with a highly optimized C/Rust core to process large volumes of data quickly. **Accelerates Time-to-Decision** in real-time systems.🧠 How AHPd Works: Simple Process, Auditable Result
--------------------------------------------------

[](#-how-ahpd-works-simple-process-auditable-result)

AHPd automatically transforms raw data into strategic insights **without the need for data pre-processing or normalization**.

1. **Define Preferences (Minimum Input):** Specify the criteria and indicate whether you want to **maximize** or **minimize** each one (e.g., "Maximize Quality," "Minimize Price").
2. **Provide Raw Data:** Input the quantitative data for all options being compared. **Data can be passed exactly as it exists in your system.**
3. **AHPd Automatic Calculation:**
    - The system analyzes the **statistical spread** of values across all options.
    - **Automatically assigns the weight of importance** to each criterion based on this spread.
    - Determines the **relative performance (priority)** of each alternative.
4. **Final Ranking:** The output is a **clear, auditable percentage ranking**, showing **which alternative is best and why**.

### 📊 Intuitive Example

[](#-intuitive-example)

Consider a device purchase decision. The user only needs to indicate whether a lower "price" is better or a larger "battery" is better.

OptionPrice US$ (Minimize)Storage GB (Maximize)Memory GB (Maximize)Camera Mpx (Maximize)Battery mAh (Maximize)**Phone A**94941286484323**Phone B**41392568504500**Phone C**44292568504300**Phone D**18851286645065**➡️ AHPd Ranking Result:**

- **Phone D** — **33.6%** (Winner)
- **Phone B** — 25.38%
- **Phone C** — 26.1%
- **Phone A** — 14.93%

The screenshot below intuitively shows the results, allowing you to see **precisely how much each feature (criterion)** contributed to the final ranking score. **This visually validates the weights calculated by AHPd**.

[![./php-extension/example/print-chart.png](./php-extension/example/print-chart.png)](./php-extension/example/print-chart.png)

> 💡 **Explanation:** **Phone D** (33.6% final score) won because it was the **lowest-priced alternative**. AHPd calculated that the **'price US$'** criterion had the **greatest statistical disparity** among all candidates, assigning it a massive weight of **46.0%** in the decision model. This resulted in Price having a **33.3% contribution** to Phone D's total score, outweighing the contribution of any other single criterion for all other alternatives.

**Verbose results:**

```
{
  "contribution": {
    "alternatives_contribution": {
      "by_criteria": {
        "Phone A": {
          "battery mAh": 25.27140468399798,
          "camera Mpx": 24.073235745226988,
          "memory GB": 22.7835981160184,
          "price US$": 10.151185142297878,
          "storage GB": 17.720576312458753
        },
        "Phone B": {
          "battery mAh": 18.725026772638852,
          "camera Mpx": 17.849621957062656,
          "memory GB": 21.623542027984474,
          "price US$": 16.57434354299879,
          "storage GB": 25.227465699315214
        },
        "Phone C": {
          "battery mAh": 18.24259984226682,
          "camera Mpx": 18.198574261252137,
          "memory GB": 22.046272819345443,
          "price US$": 15.791901454565918,
          "storage GB": 25.720651622569683
        },
        "Phone D": {
          "battery mAh": 19.309583049401244,
          "camera Mpx": 20.932567729107106,
          "memory GB": 14.85838512914299,
          "price US$": 33.34294232523744,
          "storage GB": 11.556521767111215
        }
      },
      "total_percentage": {
        "Phone A": 18.810524412740325,
        "Phone B": 26.42622428319317,
        "Phone C": 25.91950921187671,
        "Phone D": 28.843742092189796
      }
    },
    "criteria_weights": {
      "battery mAh": 0.05517554629857757,
      "camera Mpx": 0.09811746760930982,
      "memory GB": 0.11601983189243667,
      "price US$": 0.4599742131173236,
      "storage GB": 0.27071294108235233
    }
  },
  "rank": {
    "Phone A": 0.14922568130663832,
    "Phone B": 0.260912125126531,
    "Phone C": 0.25370960371891654,
    "Phone D": 0.336152589847914
  }
}
```

### Detailed Analysis

[](#detailed-analysis)

AHPd assigned the following weights of importance to the criteria, highlighting the focus on Price:

CriterionAHPd Importance WeightInterpretation**price US$** (Minimize)**45.99%**The largest variation among phones. This is the single decisive factor.**storage GB** (Maximize)**27.07%**Second-largest data spread among the phones.**memory GB** (Maximize)**11.60%**Relatively low variation among phones.**camera Mpx** (Maximize)**9.81%**Medium variation among the data.**battery mAh** (Maximize)**5.52%**The smallest data spread. This criterion barely influenced the decision.**Conclusion:** AHPd objectively determined that the **vast price difference** among the candidates was the most relevant attribute for the final decision, given the distribution of the input data.

> *(The image visually demonstrates the percentage contribution of each criterion to the final ranking score, **validating the weights calculated by AHPd**.)*

🧾 Practical Use Cases (Where AHPd Generates Value)
--------------------------------------------------

[](#-practical-use-cases-where-ahpd-generates-value)

AreaTypical ApplicationStrategic Outcome**IT &amp; Engineering**Selecting *cloud* architectures, choosing software/hardware vendors, prioritizing *sprints*.**Reduced Deployment Costs** and increased system efficiency based on real performance data.**Finance**Comparing investments based on return, risk, liquidity, and sustainability.Automated **Portfolio Optimization** and risk alignment.**Operations &amp; HR**Choosing equipment, route optimization, or evaluating candidates/suppliers.**Measurable Consistency** in selection processes and reduced operational *overhead*.**Product &amp; Marketing**Prioritizing features in *roadmaps* or comparative analysis of competitor products.**Data-Driven Roadmaps** and clear competitive advantage.🚀 Integration and Performance
-----------------------------

[](#-integration-and-performance)

AHPd is designed to be platform-agnostic and offer maximum performance, allowing the **integration of real-time decision intelligence** into your critical systems (BI, ERPs, recommendation systems).

TypeDescriptionLink**PHP Native Extension**Native C/Rust implementation for **maximum performance** within PHP systems.🔗 [View PHP Documentation](./php-extension/README.md)**REST API**JSON-compatible web service for immediate integration with **any** programming language or BI tool.🔗 [Online Service](https://ahpbi.wead.tech/api-rest)**CLI Application**Command-line tool for direct use in automated pipelines and scripts.🔗 [AHPd CLI](https://github.com/weadtech/ahpd_cli_public)**GUI Application**Desktop application for end-user analysis and reporting.*(Planned)*📚 AHPd vs. Traditional AHP: The Data-Driven Evolution
-----------------------------------------------------

[](#-ahpd-vs-traditional-ahp-the-data-driven-evolution)

This comparison highlights the key differences that make AHPd the ideal choice for automated and auditable systems, in contrast to the manual approach of classical AHP.

FeatureAHPd (Data-Driven Evolution)Traditional AHP (Classic Method)**Input Source****Real, Quantitative Data** (e.g., price, speed, capacity).**Subjective Judgments** (Expert opinions, verbal comparisons).**Criterion Weighting****Automatic.** Mathematically derived from the data's statistical dispersion.**Manual.** Derived from subjective **pairwise comparisons** of importance.**Objectivity****Fully Objective.** Consistent, unquestionable, and reproducible results.**Subjective/Semi-Objective.** Depends on the consistency and bias of human judges.**Primary Goal**Multi-criteria **Optimization** and **Auditable Ranking** based on performance.Multi-criteria **Prioritization** based on perceived importance.🧬 Licensing and Intellectual Property
-------------------------------------

[](#-licensing-and-intellectual-property)

The **use** and **distribution** of the AHPd system are **free** for both personal and commercial purposes. Compiled binaries, extensions, and libraries may be integrated into third-party products or services without additional licensing fees.

However, the high-performance computational core and underlying source code remain the **exclusive intellectual property of Wead Technology®**, ensuring integrity and continuous innovation.

### Required Attribution

[](#required-attribution)

The use of AHPd requires **mandatory attribution** to Wead Technology® in your documentation, "About" section, or any licensing notices related to the product that integrates it.

### Enterprise Services

[](#enterprise-services)

Enterprise-grade services — including **dedicated technical support**, **OEM integration**, **private cloud APIs**, and **performance optimization** — are available for organizations seeking maximum scalability, reliability, and expert assistance.

For partnerships, large-scale deployments, or OEM licensing, contact Wead Technology® to discuss collaboration opportunities.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance69

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

180d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3782118?v=4)[Adriano Maciel](/maintainers/adrianowead)[@adrianowead](https://github.com/adrianowead)

---

Top Contributors

[![adrianowead](https://avatars.githubusercontent.com/u/3782118?v=4)](https://github.com/adrianowead "adrianowead (28 commits)")

---

Tags

data-drivenahpahdpahp-data-driven

### Embed Badge

![Health badge](/badges/wead-ahpd/health.svg)

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

###  Alternatives

[phayes/geophp

GeoPHP is a open-source native PHP library for doing geometry operations. It is written entirely in PHP and can therefore run on shared hosts. It can read and write a wide variety of formats: WKT (including EWKT), WKB (including EWKB), GeoJSON, KML, GPX, GeoRSS). It works with all Simple-Feature geometries (Point, LineString, Polygon, GeometryCollection etc.) and can be used to get centroids, bounding-boxes, area, and a wide variety of other useful information.

89010.5M26](/packages/phayes-geophp)[laminas/laminas-dependency-plugin

Replace zendframework and zfcampus packages with their Laminas Project equivalents.

3114.8M125](/packages/laminas-laminas-dependency-plugin)[sylius-labs/polyfill-symfony-framework-bundle

Symfony FrameworkBundle Polyfill

136.1M2](/packages/sylius-labs-polyfill-symfony-framework-bundle)[saloonphp/pagination-plugin

Official Pagination Plugin For Saloon v3

102.0M106](/packages/saloonphp-pagination-plugin)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

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