PHPackages                             vehsamrak/factorial - 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. vehsamrak/factorial

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

vehsamrak/factorial
===================

1.0.0(9y ago)313MITPHPPHP &gt;=7.0.0

Since Feb 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Vehsamrak/Factorial)[ Packagist](https://packagist.org/packages/vehsamrak/factorial)[ RSS](/packages/vehsamrak-factorial/feed)WikiDiscussions master Synced today

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

Factorial
=========

[](#factorial)

Tested factorialization library.

[![Build Status](https://camo.githubusercontent.com/8a72abf09b10a6564cdfe4f7cb1887aa3ee8a740f1dc44461e5e386d341ae1a2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56656873616d72616b2f466163746f7269616c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Vehsamrak/Factorial/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/e5a22205ebd1d02179dc1c877035c61a20262a123b6e773afd8a08b867520182/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56656873616d72616b2f466163746f7269616c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Vehsamrak/Factorial/code-structure/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a32040f54f536556915b9a30c2604c20f636df46c19d72a37f670ec44ec59d6d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f56656873616d72616b2f466163746f7269616c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Vehsamrak/Factorial/code-structure/master)

### Requirements

[](#requirements)

- PHP &gt;= 7.0
- Composer (if you dont have composer, visit )

### Installation

[](#installation)

Install with composer: `composer require vehsamrak/factorial`

### Usage

[](#usage)

```
use Vehsamrak\Factorial\Factorial as FactorialCalculator;

$factorialCalculator = new FactorialCalculator();
$result = $factorialCalculator->factorialize(0); // $result == 1
$result = $factorialCalculator->factorialize(3); // $result == 6
$result = $factorialCalculator->factorialize(10); // $result == 3628800

```

### Tests

[](#tests)

To run tests clone this repository and install dependencies with `composer install`.

Then with built-in PHPUnit type: `vendor/bin/phpunit`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

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

3414d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23209642?v=4)[hl.c](/maintainers/Rottenwood)[@RottenWood](https://github.com/RottenWood)

---

Top Contributors

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

---

Tags

factorialmath

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vehsamrak-factorial/health.svg)

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

PHPackages © 2026

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