Contains:
- Class Dataset: PHP class to read and to handle iaga file (geomagnetic data format)
- Class Chart: to build chart
- Highcharts a javascript library to create interactive charts
- PHP >= 5.6
- Add repository:
https://github.com/terresolide/iaga.git
- Add require to:
terresolide/iaga
"repositories": [
{
"type": "git",
"url": "https://github.com/terresolide/iaga.git"
}
],
"require": {
"terresolide/iaga": "^0.3.0"
},
composer update
Download the source iaga.zip and unzip and add it to library.
@see tests/export-json.php or tests/export-json-autoload.php
// create iaga Dataset from filepath
$dataset = new \Iaga\Dataset('data/iaga_file.dat');
// output
header('Content-Type: application/json');
echo $dataset->toJson();
See more information in the wiki