PHPackages                             panchodp/precio-ponderado - 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. panchodp/precio-ponderado

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

panchodp/precio-ponderado
=========================

Calcula el precio ponderado de un producto

v0.0.1(1y ago)04MITPHPPHP ^8.3

Since Jan 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PanchoDP/precio-ponderado)[ Packagist](https://packagist.org/packages/panchodp/precio-ponderado)[ RSS](/packages/panchodp-precio-ponderado/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

 [![Precio Ponderado](https://github.com/PanchoDP/precio-ponderado/raw/master/docs/preciopromedio.png)](https://github.com/PanchoDP/precio-ponderado/blob/master/docs/preciopromedio.png)

---

Este paquete calcula precio ponderado.

> **Requires [PHP 8.3+](https://php.net/releases/)**

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

[](#installation)

```
composer require panchodp/precio-ponderado
```

Usage
-----

[](#usage)

```
 $example = new PrecioPonderado;

    $items = [
        ['precio' => 10, 'cantidad' => 100],
        ['precio' => 20, 'cantidad' => 200],
        ['precio' => 30, 'cantidad' => 150],
    ];
    $result = $example->calcularPrecioPonderado($items);
    echo $result;
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbd7042f63f458531364245f5985884dea96cc46d2b7844d5dd8c0bcad61f8e8?d=identicon)[Francisco de Pablo](/maintainers/Francisco%20de%20Pablo)

---

Top Contributors

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

---

Tags

phpprecioponderado

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/panchodp-precio-ponderado/health.svg)

```
[![Health](https://phpackages.com/badges/panchodp-precio-ponderado/health.svg)](https://phpackages.com/packages/panchodp-precio-ponderado)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21623.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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