Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (8) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-10-27 (17 days ago) | Not enough user ratings | Total: 428 This week: 3 | All time: 6,302 This week: 270 |
Version | License | PHP version | Categories | |||
salat-reminder 0.4 | GNU General Publi... | 5.3 | XML, PHP 5, Time and Date, Geography |
Description | Author | |||
This package is specific mainly for applications used in Saudi Arabia .
This class can generate a feed with the Salat times of a location. Recommendations Value of latitude and longitude Innovation Award
|
@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 | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
includes (3 files) | ||||
config.ini | Data | Class config | ||
index.php | Example | example of the class usage | ||
licence.txt | Lic. | GPL | ||
README.txt | Doc. | Readme | ||
salatcast.class.php | Class | the worker class |
Files | / | includes |
File | Role | Description |
---|---|---|
FeedItem.php | Class | dependency for writing feeds |
FeedWriter.php | Class | dependency for writing feeds |
ip2locationlite.class.php | Class | dependency for geolocation |
salat-reminder-2022-10-27.zip 239KB | |
salat-reminder-2022-10-27.tar.gz 239KB | |
Install with Composer |
Needed packages | ||
Class | Download | Why it is needed | Dependency |
---|---|---|---|
Universal Feed Generator | .zip .tar.gz | ATOM feed generation | Required |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
80% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
IslamicFinder The web service I use to look up the correct Salat/prayer timing |
SalatReminder Islamic Prayer Times for your ip location |
IP Info DB IP Geo location API, need to get an API key |
EarthTools used to get the correct UTC time, not DST |