2017 © Pedro Peláez
 

library noaa-cap-parser

Parser for NOAA CAP files.

image

thtroyer/noaa-cap-parser

Parser for NOAA CAP files.

  • Tuesday, March 13, 2018
  • by thtroyer
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

thtroyer/noaa-cap-alerts

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Latest Unstable Version License, (*1)

What is this?

This is a PHP 7.3+ library to make it easier to fetch and use weather alerts created by NOAA., (*2)

Setup

Include noaa-cap-alerts into your project:, (*3)

composer require thtroyer/noaa-cap-alerts
composer update

Dependencies

Make sure you have the XML extension installed for PHP., (*4)

e.g. sudo apt install php7.4-xml, (*5)

Usage

Instantiate a new NoaaCapAlerts\NoaaAlerts object. Calling getAlerts() will download the latest alerts from NOAA, parse and return a set of data objects to be consumed., (*6)

$noaaAlerts = new NoaaCapAlerts\NoaaAlerts();
$alerts = $noaaAlerts->getAlerts();

foreach ($alerts as $alert) {
    echo $alert->getTitle();
}

See NoaaCapAlerts\Model\NoaaAlert class to see what data is currently available., (*7)

Features are still being added, so some changes may not be backwards compatible. Until 1.0, treat new feature versions (0.x) as breaking updates., (*8)

More information about NOAA's CAP format is available here., (*9)

The Versions

13/03 2018

dev-object_refactor

dev-object_refactor https://github.com/thtroyer/noaa-cap-parser

Parser for NOAA CAP files.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/11 2017

dev-master

9999999-dev https://github.com/thtroyer/noaa-cap-parser

Parser for NOAA CAP files.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

04/11 2017

0.1.0

0.1.0.0 https://github.com/thtroyer/noaa-cap-parser

Parser for NOAA CAP files.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

23/04 2016

dev-dataobject

dev-dataobject https://github.com/thtroyer/noaa-cap-parser

  Sources   Download

MIT

The Requires

  • php >=5.3.10