A PHP Library built for the Project NOAH API.

v0.2 2018-04-09 16:16 UTC

This package is auto-updated.

Last update: 2024-03-12 19:04:05 UTC


README

A PHP Library built for NOAH API Documentation.

Actively Maintained Latest Stable Version Total Downloads Scrutinizer Code Quality Build Status Codacy Badge License

Table of contents

Requirements

  1. PHP 7 or higher.
  2. Composer

Installation

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

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.

Get Latest Contour

<?php
$noah = new Noah();
$stations = $noah->getLatestContour();

Get MT Satellite

<?php
$noah = new Noah();
$stations = $noah->getMtSat();

References