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

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

ayzanet/php-math
================

Convert PHP's math resources to objects

1.3(5y ago)15GPL-3.0PHPPHP &gt;=7.0.0

Since Nov 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ayzanet/php-math)[ Packagist](https://packagist.org/packages/ayzanet/php-math)[ Docs](https://github.com/ayzanet/php-math)[ RSS](/packages/ayzanet-php-math/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

PHP Math
========

[](#php-math)

Simple library for convert PHP math functions to objects.

#### Features:

[](#features)

- High human readable API
- Numbers manipulating
- Supported chain methods!

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

[](#installation)

- `php >= 7.0` is required
- `$ composer require ayzanet/php-math:^1.0`

Basic Usage
-----------

[](#basic-usage)

```
// Normal usage
Math::abs(-56); // 56
Math::floor(-63.6); // 63
Math::pow(2,3); // 9
Math::isNan(10); // false
Math::round(5.6) // 6
Math::max([5, 3, 8]) // 8
Math::min([5, 3, 8]) // 3

// Use Chain Methods
(new Math(-10.6))::abs()::floor()::div(2)::get() // 5
(new Math(25))::sqrt()::pow(3)::get() // 125
```

###### Just See the code for other methods api!

[](#just-see-the-code-for-other-methods-api)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

3

Last Release

1995d ago

### Community

Maintainers

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

---

Top Contributors

[![omid455r](https://avatars.githubusercontent.com/u/75158751?v=4)](https://github.com/omid455r "omid455r (9 commits)")[![HiddenLife](https://avatars.githubusercontent.com/u/6017382?v=4)](https://github.com/HiddenLife "HiddenLife (1 commits)")

---

Tags

phphelpermathmathematicalcalc

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[zjkal/time-helper

一个简单快捷的PHP日期时间助手类库。 a smart PHP datetime helper library.

21128.6k1](/packages/zjkal-time-helper)

PHPackages © 2026

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