dev-master
9999999-dev https://github.com/franhernandez/WeatherLibrary Weather in PHP
MIT
The Requires
- phpunit/phpunit 3.7.*@dev
- guzzle/guzzle 3.7.*
- php >=5.3.0
by Fran Hernandez
php library yahoo wheater
Wallogit.com
2017 © Pedro Peláez
Library Weather in PHP
PHP Library Weather (Yahoo Api), using HTTP Client Guzzle.br/ Guzzle: http://guzzle.readthedocs.org/en/latest/http-client/client.html#creating-a-clientbr/ Yahoo Api Weather: https://developer.yahoo.com/weather/, (*2)
Here's an example:, (*3)
$woeid = '753692'; //From Barcelona City $library = new WeatherLibrary(); $library->getWeatherFromWoeid($woeid);
Response:, (*4)
<img src="http://l.yimg.com/a/i/us/we/52/28.gif"/><br /> <b>Current Conditions:</b><br /> Mostly Cloudy, 68 F<BR /> <BR /><b>Forecast:</b><BR /> Sun - Mostly Clear. High: 68 Low: 60<br /> Mon - Thunderstorms. High: 67 Low: 58<br /> Tue - Partly Cloudy. High: 69 Low: 59<br /> Wed - Showers. High: 66 Low: 58<br /> Thu - Mostly Sunny. High: 68 Low: 60<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Barcelona__ES/*http://weather.yahoo.com/forecast/SPXX0015_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/> (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>

Current Conditions:
Mostly Cloudy, 68 F
Forecast:
Sun - Mostly Clear. High: 68 Low: 60
Mon - Thunderstorms. High: 67 Low: 58
Tue - Partly Cloudy. High: 69 Low: 59
Wed - Showers. High: 66 Low: 58
Thu - Mostly Sunny. High: 68 Low: 60
Full Forecast at Yahoo! WeatherBR/BR/
(provided by The Weather Channel)br/, (*5)
Library Weather in PHP
MIT
php library yahoo wheater