1. Go to this page and download the library: Download romulodl/atr 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 / atr example snippets
$atr = new Romulodl\Atr();
$atr->calculate(array $hlc_values, int $period = 14);
//returns a float value