PHPackages                             alustau/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. [Testing &amp; Quality](/categories/testing)
4. /
5. alustau/math

ActiveLibrary[Testing &amp; Quality](/categories/testing)

alustau/math
============

Helpful tools for Math

v1.0(8y ago)215[1 issues](https://github.com/alustau/math/issues)MITPHPPHP &gt;=7.0

Since Apr 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alustau/math)[ Packagist](https://packagist.org/packages/alustau/math)[ RSS](/packages/alustau-math/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Math
====

[](#math)

This is a project with goals to help developers.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)

Features
--------

[](#features)

- Prime Number Calculator

Installation through Composer
-----------------------------

[](#installation-through-composer)

```
$ composer require alustau/math
```

Usage
-----

[](#usage)

It's easy to use, see to example below:

```
use Math\PrimeNumber;

$math = new PrimeNumber();

$math->isPrime(11); // true

//add a range from 1 to 100
$math->setNumbers(range(1,100));

$math->getPrimes(); // [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]

$math->count();// 25
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2963d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2944692?v=4)[Denis Alustau](/maintainers/Alustau)[@alustau](https://github.com/alustau)

---

Top Contributors

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

---

Tags

composerinterviewjobsmathphp7phpunitphpcomposerphpunitmathjobsinterview

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.8M397](/packages/codedungeon-phpunit-result-printer)[nunomaduro/mock-final-classes

Allows mocking of final methods and classes in PHP.

113854.3k23](/packages/nunomaduro-mock-final-classes)[hot/phpunit-runner

The lib allows to watch phpunit tests

3066.9k4](/packages/hot-phpunit-runner)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)[phrozenbyte/phpunit-array-asserts

Provides various array-related PHPUnit assertions, primarily used for API testing.

1055.0k1](/packages/phrozenbyte-phpunit-array-asserts)[cable8mm/water-melon

Water Melon is simple melon.com api sdk for php

182.7k](/packages/cable8mm-water-melon)

PHPackages © 2026

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