PHPackages                             almostengr/cakephp-nwsapi - 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. [API Development](/categories/api)
4. /
5. almostengr/cakephp-nwsapi

AbandonedArchivedCakephp-plugin[API Development](/categories/api)

almostengr/cakephp-nwsapi
=========================

National Weather Service API plugin for CakePHP

2024.07.26(1y ago)02[1 issues](https://github.com/almostengr/CakephpNwsApi/issues)MITPHPPHP &gt;=8.1

Since Jul 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/almostengr/CakephpNwsApi)[ Packagist](https://packagist.org/packages/almostengr/cakephp-nwsapi)[ RSS](/packages/almostengr-cakephp-nwsapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

National Weather Service API Plugin for CakePHP
===============================================

[](#national-weather-service-api-plugin-for-cakephp)

Interact with the National Weather Service API using CakePHP Plugin

Methods that are available are based on the routes listed on the National Weather Service website at .

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage / How To Use](#usage)
- [Overriding Default Configuration](#overriding-default-configuration)
- [Report Issues / Feature Requests](#report-issues-or-feature-requests)
- [Versoining](#version-numbering)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require almostengr/national-weather-service-api
```

Usage
-----

[](#usage)

This plugin is to be used like any other component within CakePHP.

In your Controller class, add the code below. If you do not already have an `initialize()` method in your controller class, you may copy and paste the code below as it is written.

```
public function initialize(): void
{
    parent::initialize();

    $this->loadComponenent("NwsApi");
}
```

Inside of your controller method, you will call one of the endpoints like the below.

```
$this->NwsApi->getAlertTypes();
```

Overriding Default Configuration
--------------------------------

[](#overriding-default-configuration)

This plugin has default values for the API URL and the timeout. To override the defaults, add an entry to your app\_local.php file.

```
[
    "NwsApi":
    {
        "url": "api.weather.gov",
        "timeout": 30,
    }
]
```

Report Issues or Feature Requests
---------------------------------

[](#report-issues-or-feature-requests)

Issues and feature requests should be submitted to the project issue tracker at .

Upcoming features and functionality are also listed on the project issue tracker.

Version Numbering
-----------------

[](#version-numbering)

The version number for this plugin is in the following format. Using the example of

```
5.2024.07.26
```

"5" represents the major CakePHP version number that the plugin is designed for

"2024.07.26" represents the date, in YYYY-MM-DD format, that the release was created

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c709d6c1059a9a99526a28342589317a3714694078166148c8b5756252ffe39d?d=identicon)[almostengr](/maintainers/almostengr)

---

Top Contributors

[![almostengr](https://avatars.githubusercontent.com/u/15150637?v=4)](https://github.com/almostengr "almostengr (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/almostengr-cakephp-nwsapi/health.svg)

```
[![Health](https://phpackages.com/badges/almostengr-cakephp-nwsapi/health.svg)](https://phpackages.com/packages/almostengr-cakephp-nwsapi)
```

###  Alternatives

[friendsofcake/crud-json-api

Listener for building CakePHP Crud APIs following the JSON API specification.

58445.4k3](/packages/friendsofcake-crud-json-api)[alt3/cakephp-swagger

Instant Swagger documentation for your CakePHP 4.x APIs

64197.3k3](/packages/alt3-cakephp-swagger)[cnizzardini/cakephp-swagger-bake

Automatically generate OpenApi, Swagger, and Redoc documentation from your existing cakephp project

60171.2k4](/packages/cnizzardini-cakephp-swagger-bake)[bcrowe/cakephp-api-pagination

CakePHP 4 plugin that injects pagination information into API responses.

3953.5k1](/packages/bcrowe-cakephp-api-pagination)[gourmet/social-meta

Adds Facebook Open Graph and Twitter Cards support to CakePHP 3.x

255.1k](/packages/gourmet-social-meta)

PHPackages © 2026

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