PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   Screenshots Screenshots   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-02 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 377 All time: 6,251 This week: 687Up
Version License PHP version Categories  
salat-reminder 0.1GNU 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 is available for providing paid consulting. Contact Karl Holz .
Classes: 11 packages by
Country: Canada Canada
Age: 35
All time rank: 75421 in Canada Canada
Week rank: 290 Up7 in Canada Canada Up
Innovation award
Innovation award
Nominee: 6x

@package: Salat Reminder
@authour: Karl Holz

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.




Universal Feed Generator:


Web Services used:


IP Info DB:

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
key="<api key |ljdslfddfsldfhjdfsjhdfs>"

Earth Tools:



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. 
  • firefox-view.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 239KB
Downloadsalat-reminder-2014-05-02.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:377All time:6,251
 This week:0This week:687Up