ridvanbaluyos/noah 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ridvanbaluyos/noah

Composer 安装命令:

composer require ridvanbaluyos/noah

包简介

A PHP Library built for the Project NOAH API.

README 文档

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

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固