1. Go to this page and download the library: Download omkoding/cot 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/ */
omkoding / cot example snippets
mKoding\Cot\Report;
use OmKoding\Cot\Symbol;
$report = new Report;
// get latest report
$report->latest();
// get latest report by symbol
$report->latest(Symbol::EURO_FX);
// get by date and symbol
$report->byDate('09/11/2018', Symbol::EURO_FX);
// list all symbol
Symbol::all();