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

ActiveLibrary[API Development](/categories/api)

th3mouk/yahoo-weather-api
=========================

A PHP weather forecast library based on Yahoo Weather API.

1.0.0(9y ago)22.0k3[1 issues](https://github.com/Th3Mouk/YahooWeatherAPI/issues)1MITPHPPHP ^5.6 || ^7.0

Since Apr 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Th3Mouk/YahooWeatherAPI)[ Packagist](https://packagist.org/packages/th3mouk/yahoo-weather-api)[ Docs](https://github.com/Th3Mouk/YahooWeatherAPI)[ RSS](/packages/th3mouk-yahoo-weather-api/feed)WikiDiscussions master Synced today

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

Yahoo Weather API
=================

[](#yahoo-weather-api)

This PHP library providing a simple way to communicate with Yahoo Weather API.

[![Latest Stable Version](https://camo.githubusercontent.com/677491a105ee2dfe2f5269b99c670513ca319eab9cbad8970eabf3a11bd98b5f/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7961686f6f2d776561746865722d6170692f762f737461626c65)](https://packagist.org/packages/th3mouk/yahoo-weather-api) [![Latest Unstable Version](https://camo.githubusercontent.com/7a65b2b874a7e65c2ae541482d3792993d81e8cae29c16c611aa615ec5a96feb/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7961686f6f2d776561746865722d6170692f762f756e737461626c65)](https://packagist.org/packages/th3mouk/yahoo-weather-api) [![Total Downloads](https://camo.githubusercontent.com/704244f819b5adf6af56a93921e580bf56d8c7a535fb05d2bfb305abf1629204/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7961686f6f2d776561746865722d6170692f646f776e6c6f616473)](https://packagist.org/packages/th3mouk/yahoo-weather-api) [![License](https://camo.githubusercontent.com/507958aff09089c1ef129b408c89879aeff8c5d31bf5dbec6ffe258672fbbe31/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7961686f6f2d776561746865722d6170692f6c6963656e7365)](https://packagist.org/packages/th3mouk/yahoo-weather-api)

[![SensioLabsInsight](https://camo.githubusercontent.com/31c424615a9c53f24837f08f2339421440a3acdeae4d47cb715223933db90df9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34616430326363382d623437302d343665302d613430642d3466323365356134623162342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4ad02cc8-b470-46e0-a40d-4f23e5a4b1b4) [![Build Status](https://camo.githubusercontent.com/752f5684c3cbfe35c64e9cc625b6233699bcf6540eefc3503952d0b0c1c971c4/68747470733a2f2f7472617669732d63692e6f72672f5468334d6f756b2f5961686f6f576561746865724150492e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Th3Mouk/YahooWeatherAPI) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/329ac77ec3ff452a13491c66b3b97a9a82e408eff0051a4af7eab12e9644f0fa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5468334d6f756b2f5961686f6f576561746865724150492f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Th3Mouk/YahooWeatherAPI/?branch=master) [![Coverage Status](https://camo.githubusercontent.com/6788b9a5eb2a6f8358b6ef9e55aa2ce5c8c8b26d38385ef178e2f4b404b76092/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f5468334d6f756b2f5961686f6f576561746865724150492f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Th3Mouk/YahooWeatherAPI?branch=master)

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

[](#installation)

`composer require th3mouk/yahoo-weather-api ^1.0`

Usage
-----

[](#usage)

Simply implement the class

```
require_once __DIR__ . '/vendor/autoload.php';

use Th3Mouk\YahooWeatherAPI\YahooWeatherAPI;

$yahooWeather = new YahooWeatherAPI();
```

### Methods

[](#methods)

Get forecasts with a WOEID code :

```
$yahooWeather->callApiWoeid($woeid = null, $unit = 'c');
```

Get forecasts with a city name :

```
$yahooWeather->callApiCityName($name = null, $unit = 'c');
```

Get forecasts with a [yql request](https://developer.yahoo.com/yql/console/) :

```
$yahooWeather->callApi($yql = null);
```

Thanks
------

[](#thanks)

- To [Jean-Baptiste Audebert](https://github.com/jb18) for the first layer of code
- To [peter279k](https://github.com/peter279k) for testing suite

Contributing
------------

[](#contributing)

Before commiting, please run `php-cs-fixer fix .` command, and update the test suite.

Please
------

[](#please)

Feel free to improve this library.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.3% 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 ~159 days

Total

2

Last Release

3566d ago

Major Versions

0.9 → 1.0.02016-09-27

PHP version history (2 changes)0.9PHP ^5.4|^7.0

1.0.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5006899?v=4)[Jérémy](/maintainers/Th3Mouk)[@Th3Mouk](https://github.com/Th3Mouk)

---

Top Contributors

[![Th3Mouk](https://avatars.githubusercontent.com/u/5006899?v=4)](https://github.com/Th3Mouk "Th3Mouk (21 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

apiforecastweatheryahooapiweatheryahooyahoo apiforecasts

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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