Skip to content

A PHP library to communicate with Yahoo Weather API. ☀️ ☁️

License

Notifications You must be signed in to change notification settings

Th3Mouk/YahooWeatherAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

92d49d9 · Aug 2, 2018

History

23 Commits
May 28, 2018
Aug 2, 2018
Sep 27, 2016
Sep 27, 2016
Sep 27, 2016
May 28, 2018
Sep 27, 2016
May 28, 2018
May 28, 2018
May 28, 2018
Aug 2, 2018
Sep 27, 2016

Repository files navigation

Yahoo Weather API

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

Latest Stable Version Latest Unstable Version Total Downloads License

SensioLabsInsight Build Status Scrutinizer Code Quality Coverage Status

Installation

composer require th3mouk/yahoo-weather-api ^1.0

Usage

Simply implement the class

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

use Th3Mouk\YahooWeatherAPI\YahooWeatherAPI;

$yahooWeather = new YahooWeatherAPI();

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 :

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

Thanks

Contributing

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

Please

Feel free to improve this library.