2017 © Pedro Peláez
 

library yahoo-weather

Yahoo Weather API PHP Implementation

image

mbajda/yahoo-weather

Yahoo Weather API PHP Implementation

  • Saturday, May 5, 2018
  • by mbajda
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 40 % Grown

The README.md

Yahoo Weather

This library is a PHP implementation of Yahoo Weather API. It allows querying for many weather conditions for specified location on the world., (*1)

Usage

First, you need to create instance of weather API endpoint. To do this, simply use following code:, (*2)

$cache = new \YahooWeather\Endpoint\Cache\FileCache('var\cache', 60*60*12);
$endpoint = new \YahooWeather\Endpoint($cache);

YahooWeather\Endpoint is the main class of the library., (*3)

YahooWeather\Endpoint\Cache\FileCache is the cache class to use with the endpoint. The constructor accepts up to 2 parameters. The first is the directory, in which the cache will be stored. The second is cache time-to-live - the time, for which the cache file will be used., (*4)

$endpoint->getWOEIDs('Warsaw');

This line will allow you to get WOEID (location's ID) for a specified location., (*5)

$endpoint->getData(523920);

getData method allows you to get all the data for specified WOEID (which is the parameter for that and other methods)., (*6)

Additional information

The library utilizes connection with https://query.yahooapis.com - Yahoo APIs. There is a limit of queries made by day, which is equal to 2000., (*7)

Read more at https://developer.yahoo.com/weather, (*8)

The Versions

05/05 2018

dev-master

9999999-dev

Yahoo Weather API PHP Implementation

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

api yahoo weather yahoo-weather

05/05 2018

1.1.3

1.1.3.0

Yahoo Weather API PHP Implementation

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

api yahoo weather yahoo-weather

05/05 2018

dev-dev

dev-dev

Yahoo Weather API PHP Implementation

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

api yahoo weather yahoo-weather

18/09 2017

1.0.0

1.0.0.0

Yahoo Weather API PHP Implementation

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

api yahoo weather yahoo-weather