kohanaworld/hmmmath

Collection of math related PHP functions (PHP >=7.2 <=8.3

Installs: 3 710

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 5

pkg:composer/kohanaworld/hmmmath

0.9.0 2024-06-25 07:29 UTC

This package is auto-updated.

Last update: 2025-10-07 18:34:40 UTC


README

Test

Delicious math component for PHP

Fibonacci number sequences

<?php
use hmmmath\Fibonacci\FibonacciFactory;

foreach (FibonacciFactory::sequence(0, 1) as $number) {
    var_dump($number);
}

Will output:

int(0)
int(1)
int(1)
int(2)
int(3)
int(5)
int(8)
int(13)
int(21)
int(34)
int(55)
int(89)
int(144)
...