PHPackages                             zendframework/zend-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. zendframework/zend-math

Abandoned → [laminas/laminas-math](/?search=laminas%2Flaminas-math)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

zendframework/zend-math
=======================

Create cryptographically secure pseudo-random numbers, and manage big integers

3.2.0(7y ago)5618.4M↑27.8%23[1 issues](https://github.com/zendframework/zend-math/issues)20BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Oct 17Pushed 6y ago13 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (72)Used By (20)

zend-math
=========

[](#zend-math)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-math](https://github.com/laminas/laminas-math).

[![Build Status](https://camo.githubusercontent.com/b34b89a2f0b73258bcac4b817f5dff54876488764ea64cbd940911b75e94b168/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d6d6174682e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-math)[![Coverage Status](https://camo.githubusercontent.com/d3128dcfda168e8bca048b90deacd31d8008c4786e569e93db28e12c94cd5b5a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d6d6174682f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-math?branch=master)

`Zend\Math` provides general mathematical functions. So far the supported functionalities are:

- `Zend\Math\Rand`, a random number generator;
- `Zend\Math\BigInteger`, a library to manage big integers.

Migration notes from v2 to v3
=============================

[](#migration-notes-from-v2-to-v3)

[We document migration notes from v2 to v3](https://docs.zendframework.com/zend-math/migration/), providing details of potential BC breaks and/or API differences you may need to be aware of.

Miscellany
==========

[](#miscellany)

- File issues at
- Documentation is at

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community42

Growing community involvement

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 72.3% 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 ~33 days

Recently: every ~237 days

Total

68

Last Release

2722d ago

Major Versions

2.7.0 → 3.0.02016-04-28

2.7.1 → 3.2.02018-12-04

PHP version history (5 changes)2.0.3PHP &gt;=5.3.3

2.1.4PHP &gt;=5.3.23

2.5.2PHP &gt;=5.5

2.6.0PHP ^5.5 || ^7.0

3.1.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (4327 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (559 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (357 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (162 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (126 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (110 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (35 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (34 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (33 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (29 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (24 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (23 commits)")[![denixport](https://avatars.githubusercontent.com/u/1013355?v=4)](https://github.com/denixport "denixport (22 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (19 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (17 commits)")[![Thinkscape](https://avatars.githubusercontent.com/u/270528?v=4)](https://github.com/Thinkscape "Thinkscape (12 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (11 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (11 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (9 commits)")[![mikaelkael](https://avatars.githubusercontent.com/u/212540?v=4)](https://github.com/mikaelkael "mikaelkael (9 commits)")

---

Tags

mathZendFrameworkzf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-math/health.svg)

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

PHPackages © 2026

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