Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 2.21 KB

README.md

File metadata and controls

56 lines (34 loc) · 2.21 KB

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.