PHP Classes

Salat Reminder: Generate a feed with the Salat times of a location

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 430 This week: 1All time: 6,314 This week: 560Up
Version License PHP version Categories
salat-reminder 0.4GNU General Publi...5.3XML, PHP 5, Time and Date, Geography
Description 

Author

This package is specific mainly for applications used in Saudi Arabia Saudi Arabia .

This class can generate a feed with the Salat times of a location.

It tries to find the current user geographic location based on the IP address and generates an feed in Atom format with the upcoming Salat prayer times.

The generated feed entries have links to Islamic Finder site.

The IP address location can be cached on a file to avoid overhead of determining the user geographic location again.

Innovation Award
PHP Programming Innovation award nominee
August 2012
Number 4


Prize: One copy of the Zend Studio
Salat is a ritual worship that Muslims have to perform at specific times.

This class helps Muslims determining not only what will be the next Salat time depending on where they are in the world, but also future Salat times using a RSS feed that is regularly updated depending on the current time.

This RSS feed can be pulled by applications that can be used to alert the Muslims in time for their prayers.

Manuel Lemos
Picture of Karl Holz
  Performance   Level  
Name: Karl Holz <contact>
Classes: 14 packages by
Country: Canada Canada
Age: 43
All time rank: 44918 in Canada Canada
Week rank: 106 Up3 in Canada Canada Up
Innovation award
Innovation award
Nominee: 9x

Recommendations

Value of latitude and longitude
Value of latitude and longitude than can help me to

Details

@package: Salat Reminder @authour: Karl Holz @link: http://www.salamcast.com/demos/SalatCast/ July 25, 2012 Asalam Alikum Brothers and Sisters, Salah is a very important part of EVERY Muslims daily life and it is an obligation to perform this act of worship on time five times everyday. Salat Reminder is just another tool to help remind us to remember Allah Subhannah Wa'Tallah while living in the west with our busy schedules. In Canada I don't have the luxury of hearing the Azan being called out loud in our streets everyday, like in many Muslim countries; This adds to the challenge of living Islam and being a good Muslim, since we are not always in the company of our brothers and sisters in Islam. Salat Reminder is a simple ATOM feed generator that displays todays Salat timings based on your ip addresses geographical location and are sourced from Islamic Finders Prayer Web service. The default options can be configured in the config.ini file; I've added some comments to help you configure it to your needs. Please note that if you're using a proxy of any kind your results will most likely be incorrect. For example, the Mc Donald’s wifi I'm using in Toronto, Canada is piped through Washington DC in the USA. The title of the feed will have the current city and country; if you're in doubt, look up the timings from a source that matches your location. ------------------------------------------ Dependancies: ip2locationlite.class: http://ipinfodb.com/ip_location_api.php Universal Feed Generator: http://www.phpclasses.org/package/4427-PHP-Generate-feeds-in-RSS-1-0-2-0-an-Atom-formats.html ------------------------------------------ Web Services used: ------------------------------------------ IP Info DB: http://ipinfodb.com/ It is very important that you get a free API key for ipinfodb and copy and paste it into a file called ".ht_ipinfodb.ini" (the .ht is to prevent the file from being viewed on the web, as per default apache httpd config), this is a basic template, just replace the text in key with the real key: ;----------------------------------------- ; Example of .ht_ipinfodb.ini ;----------------------------------------- [api] key="<api key |ljdslfddfsldfhjdfsjhdfs>" ;----------------------------------------- Earth Tools: http://www.earthtools.org/webservices.htm ----------------------------------------- IslamicFinder.org: http://www.islamicfinder.org/prayerService.php?timezone=-5.0&dayLight=1&pmethod=5&fajrTwilight1= &ishaTwilight=0&fajrTwilight2=&ishaInterval=0&HanfiShafi=1&dhuhrInterval=1&maghribInterval=1 &city=toronto&state=ON&zipcode=&country=canada&calculate=1&lang=english#xml_link _________________________________________ Please download this and run it on your own web server, this will help keep the feed generating nicely. EarthTools and IP Info DB are free services and shouldn't be abused by your scripts, Inshallah my scripts don't. If you notice any mistakes in my readme or code or calculations, please feel free to let me know.

Screenshots  
  • firefox-view.png
  • mail.app-rss-reader.png
  Files folder image Files  
File Role Description
Files folder imageincludes (3 files)
Accessible without login Plain text file config.ini Data Class config
Accessible without login Plain text file index.php Example example of the class usage
Accessible without login Plain text file licence.txt Lic. GPL
Accessible without login Plain text file README.txt Doc. Readme
Plain text file salatcast.class.php Class the worker class

  Files folder image Files  /  includes  
File Role Description
  Plain text file FeedItem.php Class dependency for writing feeds
  Plain text file FeedWriter.php Class dependency for writing feeds
  Plain text file ip2locationlite.class.php Class dependency for geolocation

Downloadsalat-reminder-2022-10-27.zip 239KB
Downloadsalat-reminder-2022-10-27.tar.gz 239KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Universal Feed Generator Download .zip .tar.gz ATOM feed generation Required
 Version Control Unique User Downloads Download Rankings  
 80%
Total:430
This week:1
All time:6,314
This week:560Up