A PHP Library built for NOAH API Documentation.
- PHP 7 or higher.
- Composer
Open your composer.json
file and add the following to the require
key:
"ridvanbaluyos/noah": "v0.2"
After adding the key, run composer update from the command line to install the package
composer install
or
composer update
<?php
error_reporting(E_ALL);
use Ridvanbaluyos\Noah\Noah as Noah;
require_once __DIR__ . '/vendor/autoload.php';
$noah = new Noah();
$stations = $noah->getStations();
var_dump($stations);
$noah = new Noah();
$stations = $noah->getDoppler();
$noah = new Noah();
// First parameter is station type, second parameter is station id.
$stations = $noah->getStationByTypeAndId(1, 27);
$noah = new Noah();
$stations = $noah->getStations();
<?php
$noah = new Noah();
$stations = $noah->getFloodMaps();
<?php
$noah = new Noah();
$stations = $noah->getFloodReport(2011);
<?php
$noah = new Noah();
$stations = $noah->getFloogetLandslideMapsReport();
<?php
$noah = new Noah();
$stations = $noah->getStormSurgeMaps();
<?php
$noah = new Noah();
$stations = $noah->getFourHourForecast();
<?php
$noah = new Noah();
// Parameter is location id (optional)
$stations = $noah->getSevenDayForecast(1);
Note: I don't know yet where the reference to the the location id parameter. I will update this once I get a word from the developers.
<?php
$noah = new Noah();
$stations = $noah->getLatestContour();
<?php
$noah = new Noah();
$stations = $noah->getMtSat();