PHPackages                             wescleylima/math-php - 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. wescleylima/math-php

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

wescleylima/math-php
====================

Biblioteca para cálculos monetários precisos usando string e BCMath

v1.0.1(8mo ago)231MITPHPPHP &gt;=5.6

Since Sep 4Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/wescleylima/math-php)[ Packagist](https://packagist.org/packages/wescleylima/math-php)[ RSS](/packages/wescleylima-math-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

INSTALL
=======

[](#install)

composer require wescleylima/math-php

SAMPLE
======

[](#sample)

```
use Wescley\Math\Money;

$value1 = "10.50123";
$value2 = "2.35";
$value3 = "8.735";
$scale = 5;

$price1 = new Money($value1, $scale);
$price2 = new Money($value2, $scale);
$price3 = new Money($value3, $scale);

$price1->sum($price2);
$price1->sum($price3);
$price1->subtract($price3);
$price1->subtract($price2);
$price1->multiply($price2);
$price1->divide($price2);
echo $price1->getAmount();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance60

Regular maintenance activity

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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 ~0 days

Total

2

Last Release

256d ago

### Community

Maintainers

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

---

Top Contributors

[![wgldevelop](https://avatars.githubusercontent.com/u/133400409?v=4)](https://github.com/wgldevelop "wgldevelop (3 commits)")[![wescleylima](https://avatars.githubusercontent.com/u/18682697?v=4)](https://github.com/wescleylima "wescleylima (1 commits)")

### Embed Badge

![Health badge](/badges/wescleylima-math-php/health.svg)

```
[![Health](https://phpackages.com/badges/wescleylima-math-php/health.svg)](https://phpackages.com/packages/wescleylima-math-php)
```

PHPackages © 2026

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