PHP code example of rmaysak / fibonacci

1. Go to this page and download the library: Download rmaysak/fibonacci library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rmaysak / fibonacci example snippets


use RM\Fibonacci;

$fibonacci = new Fibonacci();

$fibonacciNumber = $fibonacci->getNumber(10);
$fibonacciSeries = $fibonacci->getSeries(20);
$fibonacci->showSeries(20);