lstrojny/hmmmath

Collection of math related PHP functions

Maintainers

Package info

github.com/lstrojny/hmmmath

pkg:composer/lstrojny/hmmmath

Statistics

Installs: 2 096 104

Dependents: 7

Suggesters: 0

Stars: 15

Open Issues: 1

0.8.0 2020-12-17 11:21 UTC

This package is auto-updated.

Last update: 2026-03-09 00:06:42 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)
...