PHPackages                             thtroyer/noaa-cap-alerts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. thtroyer/noaa-cap-alerts

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

thtroyer/noaa-cap-alerts
========================

Parser for NOAA CAP files.

0.4.0(4y ago)49[2 issues](https://github.com/thtroyer/noaa-cap-alerts/issues)MITPHPPHP &gt;=7.4 || &gt;=8.0CI failing

Since Nov 4Pushed 4y ago2 watchersCompare

[ Source](https://github.com/thtroyer/noaa-cap-alerts)[ Packagist](https://packagist.org/packages/thtroyer/noaa-cap-alerts)[ Docs](https://github.com/thtroyer/noaa-cap-alerts)[ RSS](/packages/thtroyer-noaa-cap-alerts/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

thtroyer/noaa-cap-alerts
========================

[](#thtroyernoaa-cap-alerts)

[![Build Status](https://camo.githubusercontent.com/a9bab557c7a1c6942d79c1a5ba42a47187e772e38b3f7f2a50a5f050592b4d3a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746874726f7965722f6e6f61612d6361702d616c657274732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thtroyer/noaa-cap-alerts/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/6297375356f8809534909c737930f9ae5523bdac06c84171388a3c13fbc4b2eb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746874726f7965722f6e6f61612d6361702d616c657274732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thtroyer/noaa-cap-alerts/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/21d1a5123a4820f93941350d4731c53a96d96cb9cca5d01036eb1f961541bf89/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746874726f7965722f6e6f61612d6361702d616c657274732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thtroyer/noaa-cap-alerts/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/e8b07c22347b54032630d9eeed3ef3892022afbe22f88870d3cf710cb5fd8124/68747470733a2f2f706f7365722e707567782e6f72672f746874726f7965722f6e6f61612d6361702d616c657274732f76657273696f6e)](https://packagist.org/packages/thtroyer/noaa-cap-alerts)[![Latest Unstable Version](https://camo.githubusercontent.com/64a24e153257601bc174d192ed5b1fa9c8763ca4419f4ff3305ef9087501329a/68747470733a2f2f706f7365722e707567782e6f72672f746874726f7965722f6e6f61612d6361702d616c657274732f762f756e737461626c65)](//packagist.org/packages/thtroyer/noaa-cap-alerts)[![License](https://camo.githubusercontent.com/c8bce0b62bc64c5adb0ebed1cbdcfbd6a3028143dd29e80e299c9f31960c704e/68747470733a2f2f706f7365722e707567782e6f72672f746874726f7965722f6e6f61612d6361702d616c657274732f6c6963656e7365)](https://packagist.org/packages/thtroyer/noaa-cap-alerts)

What is this?
-------------

[](#what-is-this)

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

Setup
-----

[](#setup)

Include noaa-cap-alerts into your project:

```
composer require thtroyer/noaa-cap-alerts
composer update

```

### Dependencies

[](#dependencies)

Make sure you have the XML extension installed for PHP.

e.g. `sudo apt install php7.4-xml`

### Usage

[](#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.

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

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

See [NoaaCapAlerts\\Model\\NoaaAlert](https://github.com/thtroyer/noaa-cap-alerts/blob/master/src/NoaaCapAlerts/Model/NoaaAlert.php) class to see what data is currently available.

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.

More information about NOAA's CAP format is available [here](http://alerts.weather.gov/).

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~279 days

Recently: every ~336 days

Total

7

Last Release

1486d ago

PHP version history (3 changes)0.1.0PHP &gt;=7.0

0.2.0PHP &gt;=7.1

0.4.0PHP &gt;=7.4 || &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1638737?v=4)[Tom Troyer](/maintainers/thtroyer)[@thtroyer](https://github.com/thtroyer)

---

Top Contributors

[![thtroyer](https://avatars.githubusercontent.com/u/1638737?v=4)](https://github.com/thtroyer "thtroyer (63 commits)")

---

Tags

noaanoaa-apinoaa-datanoaa-weatherphpsevere-weatherweather-alertsweather-information

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thtroyer-noaa-cap-alerts/health.svg)

```
[![Health](https://phpackages.com/badges/thtroyer-noaa-cap-alerts/health.svg)](https://phpackages.com/packages/thtroyer-noaa-cap-alerts)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73147.2k29](/packages/jaxon-php-jaxon-core)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[tsantos/serializer

Object (de)serializer component for PHP

281.7k1](/packages/tsantos-serializer)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
