ridvanbaluyos/noah
A PHP Library built for NOAH API Documentation., (*1)
, (*2)
Table of contents
Requirements
- PHP 7 or higher.
- Composer
Installation
Open your composer.json
file and add the following to the require
key:, (*3)
"ridvanbaluyos/noah": "v0.2"
After adding the key, run composer update from the command line to install the package, (*4)
composer install
or, (*5)
composer update
Usage
<?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);
Get Doppler
$noah = new Noah();
$stations = $noah->getDoppler();
Get Station by Type and ID
$noah = new Noah();
// First parameter is station type, second parameter is station id.
$stations = $noah->getStationByTypeAndId(1, 27);
Get Stations
$noah = new Noah();
$stations = $noah->getStations();
Get Flood Maps
<?php
$noah = new Noah();
$stations = $noah->getFloodMaps();
Get Flood Reports
<?php
$noah = new Noah();
$stations = $noah->getFloodReport(2011);
Get Landslide Maps
<?php
$noah = new Noah();
$stations = $noah->getFloogetLandslideMapsReport();
Get Storm Surge Maps
<?php
$noah = new Noah();
$stations = $noah->getStormSurgeMaps();
Get Four-Hour Forecast
<?php
$noah = new Noah();
$stations = $noah->getFourHourForecast();
Get Seven-Day Forecast
<?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., (*6)
Get Latest Contour
<?php
$noah = new Noah();
$stations = $noah->getLatestContour();
Get MT Satellite
<?php
$noah = new Noah();
$stations = $noah->getMtSat();
References