PHP code example of rockiger / fintils

1. Go to this page and download the library: Download rockiger/fintils 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/ */

    

rockiger / fintils example snippets




use Rockiger\Fintils;

// Calculate the return of the given prices:
//[0, 0.1, 0.0454545454545454, -0.0869565217391305, -0.0476190476190477]
$returns = Fintils::Rs([100, 110, 115, 105, 100])