Skip to content
A PHP library to communicate with Yahoo Weather API. ☀️ ☁️
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.editorconfig
.gitignore
.php_cs
.scrutinizer.yml
.styleci.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml

README.md

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.

You can’t perform that action at this time.