PHP code example of romulodl / kama

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

    

romulodl / kama example snippets


$kama = new Romulodl\Kama();
$kama->calculate(
  array $values,
  int $period = 7,
  int $fastEma = 2,
  int $slowEma = 30
);

$kama = new Romulodl\Kama();
$kama->calculate([10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);