composer require rmaysak/fibonacci
{
"require": {
"rmaysak/fibonacci": "~1.0.0"
}
}
use RM\Fibonacci;
$fibonacci = new Fibonacci();
$fibonacciNumber = $fibonacci->getNumber(10);
$fibonacciSeries = $fibonacci->getSeries(20);
$fibonacci->showSeries(20);
Returns the number in Fibonacci sequence by position
Returns array with Fibonacci sequence by count
Shows Fibonacci sequence by count