PHP Classes

PHP Weather: Show widgets of weather got from OpenWeathermap

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedStarStarStar 54%Total: 698 All time: 4,697 This week: 39Up
Version License PHP version Categories
openweather 1.11GNU General Publi...5.0PHP 5, Content management, Weather
Description 

Author

This class can show widgets of weather got from OpenWeathermap.

It takes the name of given city and retrieves the weather conditions for that city from the OpenWeathermap site sending a HTTP request to its API Web server.

The retrieved weather information can be cached in local files for a given period of time.

The class can generate HTML and JavaScript to display a widget presenting the location weather details like temperature, location, clouds, wind, humidity, pressure, etc..

The information can be presented in many different languages using different presentation styles like widget size and colors.

Picture of Samy Massoud
  Performance   Level  
Name: Samy Massoud <contact>
Classes: 5 packages by
Country: Egypt Egypt
Age: 39
All time rank: 245024 in Egypt Egypt
Week rank: 180 Up4 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 2x

Details

PHP Weather Class ============= Weather class: is a powerful,easy and expendable PHP class ! It's very easy to configure , and it comes with Multi themes ! Also it contains forecast for next three days just click icon next to city name. ======================= $weather->set_cache(60*60); $weather->set_city('cairo'); $weather->set_theme('darkred'); echo $weather->get_weather(); Weather widget: has a Powerful caching system ! ========================================= For Online demo please visit <a href="http://deploy2cloud.com/demo/weather/">Weather class Demo</a> Default temperature measurement is Celsius, You can change it to Fahrenheit very easy ! $weather->set_temp_metrics('f'); Weather widget: support many languages and yet can be extended to support more easily ! Currently supported language by widget and weather API are :(English,Italian,Russian and French) And API Support: We support the following languages that you can use with the corresponded lang values: English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zh_tw, Chinese Simplified - zh_cn, Turkish - tr Weather widget: can select city by name ie (Alexandria,EG) or id ie (3645532) or Longitude and Latitude ie(28.666668,77.216667)! $weather->set_lang('fr'); Also you can control it's dimension ! $weather->set_dimention(550,248); This features is not enough ? Wait , do you know that you can get all of this info as a row PHP array ! And it's ready to be used with CodeIgniter as a library ! ============ if you like it help us to continue developing it <br> Visit our online demo and <a href="http://www.deploy2cloud.com/demo/weather/">donate via paypal</a>

Screenshots (1)  
  • main
  Files folder image Files (23)  
File Role Description
Files folder imageweather (3 files, 2 directories)
Accessible without login Plain text file README.md Data Read me

  Files folder image Files (23)  /  weather  
File Role Description
Files folder imagecss (1 file)
Files folder imagedocs (6 files, 1 directory)
  Accessible without login Plain text file demo.php Example Demo
  Accessible without login Plain text file jquery-1.10.2.min.js Data jquery
  Accessible without login Plain text file weathercore.php Class core class

  Files folder image Files (23)  /  weather  /  css  
File Role Description
  Accessible without login Plain text file main.css Data main css

  Files folder image Files (23)  /  weather  /  docs  
File Role Description
Files folder imageresources (11 files)
  Accessible without login HTML file 404.html Doc. Documentation
  Accessible without login HTML file class-weather.html Doc. Documentation
  Accessible without login Plain text file elementlist.js Doc. Documentation
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login HTML file source-class-weather.html Doc. Documentation
  Accessible without login HTML file tree.html Doc. Documentation

  Files folder image Files (23)  /  weather  /  docs  /  resources  
File Role Description
  Accessible without login Image file collapsed.png Icon Icon image
  Accessible without login Plain text file combined.js Doc. Documentation
  Accessible without login Image file footer.png Data Auxiliary data
  Accessible without login Image file inherit.png Icon Icon image
  Accessible without login Image file resize.png Icon Icon image
  Accessible without login Image file sort.png Icon Icon image
  Accessible without login Plain text file style.css Data Auxiliary data
  Accessible without login Image file tree-cleaner.png Icon Icon image
  Accessible without login Image file tree-hasnext.png Icon Icon image
  Accessible without login Image file tree-last.png Data Auxiliary data
  Accessible without login Image file tree-vertical.png Icon Icon image

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 95%
Total:698
This week:0
All time:4,697
This week:39Up
User Ratings User Comments (1)
 All time
Utility:80%StarStarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2139
 
Nice!
10 years ago (Bla)
70%StarStarStarStar