PHPackages                             mbajda/yahoo-weather - 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. mbajda/yahoo-weather

ActiveLibrary[API Development](/categories/api)

mbajda/yahoo-weather
====================

Yahoo Weather API PHP Implementation

1.1.3(8y ago)025MITPHPPHP &gt;=7.1.0

Since Sep 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mbajda/yahoo-weather)[ Packagist](https://packagist.org/packages/mbajda/yahoo-weather)[ RSS](/packages/mbajda-yahoo-weather/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)DependenciesVersions (4)Used By (0)

Yahoo Weather
=============

[](#yahoo-weather)

This library is a PHP implementation of Yahoo Weather API. It allows querying for many weather conditions for specified location on the world.

### Usage

[](#usage)

First, you need to create instance of weather API endpoint. To do this, simply use following code:

```
$cache = new \YahooWeather\Endpoint\Cache\FileCache('var\cache', 60*60*12);
$endpoint = new \YahooWeather\Endpoint($cache);
```

`YahooWeather\Endpoint` is the main class of the library.

`YahooWeather\Endpoint\Cache\FileCache` is the cache class to use with the endpoint. The constructor accepts up to 2 parameters. The first is the directory, in which the cache will be stored. The second is cache time-to-live - the time, for which the cache file will be used.

```
$endpoint->getWOEIDs('Warsaw');
```

This line will allow you to get WOEID (location's ID) for a specified location.

```
$endpoint->getData(523920);
```

`getData` method allows you to get all the data for specified WOEID (which is the parameter for that and other methods).

### Additional information

[](#additional-information)

The library utilizes connection with  - **Yahoo APIs**. There is a limit of queries made by day, which is equal to 2000.

Read more at

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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 ~228 days

Total

2

Last Release

2978d ago

### Community

Maintainers

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

---

Top Contributors

[![mbajda](https://avatars.githubusercontent.com/u/6314796?v=4)](https://github.com/mbajda "mbajda (7 commits)")

---

Tags

weather-apiweather-dataweather-forecastapiweatheryahooyahoo weather

### Embed Badge

![Health badge](/badges/mbajda-yahoo-weather/health.svg)

```
[![Health](https://phpackages.com/badges/mbajda-yahoo-weather/health.svg)](https://phpackages.com/packages/mbajda-yahoo-weather)
```

###  Alternatives

[cmfcmf/openweathermap-php-api

A PHP API to parse weather data from OpenWeatherMap.org. This wrapper tries to normalise and abstract the data and remove inconsistencies.

3371.3M7](/packages/cmfcmf-openweathermap-php-api)[scheb/yahoo-finance-api

PHP library for accessing Yahoo Finance data

325217.9k5](/packages/scheb-yahoo-finance-api)[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7651.3k](/packages/rakibdevs-openweather-laravel-api)[adinan-cenci/climatempo-api

Uma api para previsão de tempo escrita em PHP.

458.3k](/packages/adinan-cenci-climatempo-api)[gnahotelsolutions/laravel-weather

🌤️ A wrapper around Open Weather Map to get the current weather on a location.

385.3k](/packages/gnahotelsolutions-laravel-weather)[rugaard/weatherkit

Integrate Apple WeatherKit API into your project

111.4k](/packages/rugaard-weatherkit)

PHPackages © 2026

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