PHP Classes

PHP Weather Forecast API: Get the weather forecast from World Weather Online

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 months ago) RSS 2.0 feedStarStarStar 56%Total: 1,147 All time: 3,295 This week: 524Up
Version License PHP version Categories
weather-forecast 1.11MIT/X Consortium ...5PHP 5, Web services, Weather


This class can get the weather forecast from World Weather Online.

It can send HTTP requests to the World Weather Online API Web server to retrieve the weather forecast for a given location for the next 5 days.

The class can return the weather time, temperature, description icon, wind speed, wind direction, precipitation, humidity, visibility, pressure, and cloud cover.

The class caches the weather information in a file for one hour.

Picture of Giovanni Ramos
  Performance   Level  
Name: Giovanni Ramos <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 42
All time rank: 95766 in Brazil Brazil
Week rank: 84 Up3 in Brazil Brazil Up


# World Weather Online API Wrapper This is an API wrapper for which provides access to meteorological and weather data. ### The returned data contains elements such as: * Temperature * Precipitation (rainfall) * Weather description * Weather icon * Wind speed ### Features * Simple access to meteorological and weather data * By default the data is cached for 1 hour * No adverts To use the API you need to sign up for API access on [WorldWeatherOnline]( (Registration is free).

  • WeatherForecast
  Files folder image Files  
File Role Description
Files folder imagecache (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file Doc. Documentation
Accessible without login Plain text file screen.css Data Auxiliary data
Plain text file WeatherForecast.class.php Class Class source

  Files folder image Files  /  cache  
File Role Description
  Accessible without login Plain text file .gitkeep Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,295
This week:524Up
 User Ratings  
 All time