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

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages