All Projects → afzafri → Waktu-Solat-API

afzafri / Waktu-Solat-API

Licence: MIT license
PHP API for fetching prayer time from JAKIM e-Solat website

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Waktu-Solat-API

php-antispam
A PHP API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.
Stars: ✭ 50 (+85.19%)
Mutual labels:  php-api
prayer-times-extension
Under Development: Prayer Time Calculation based on Geolocation for Chromium and Firefox
Stars: ✭ 61 (+125.93%)
Mutual labels:  prayer-times
NeteaseCloudMusicApi
网易云音乐API PHP
Stars: ✭ 30 (+11.11%)
Mutual labels:  php-api
Awesome-Muslims
A currated list of Awesome Muslim Resources to encourage and help developers produce more islamic apps.
Stars: ✭ 122 (+351.85%)
Mutual labels:  prayer-times
waqt
Electron-based app to display today's Islamic prayer times.
Stars: ✭ 26 (-3.7%)
Mutual labels:  prayer-times
google-search-results-php
Google Search Results PHP API via Serp Api
Stars: ✭ 41 (+51.85%)
Mutual labels:  php-api
Apiato
PHP Framework for building scalable API's on top of Laravel.
Stars: ✭ 2,564 (+9396.3%)
Mutual labels:  php-api
app waktu solat malaysia
Prayer times app for Malaysia. Accurate data from JAKIM. Available for Android and the web.
Stars: ✭ 24 (-11.11%)
Mutual labels:  malaysia
malay-dataset
Text corpus for Bahasa Malaysia, https://malaya.readthedocs.io/en/latest/Dataset.html
Stars: ✭ 189 (+600%)
Mutual labels:  malaysia
makeapidoc
php自动生成api文档
Stars: ✭ 67 (+148.15%)
Mutual labels:  php-api
PrayerTimes
Desktop application 💻 for calculating Muslim prayer times 🕌 and setting an alarm (Adhan) ⏰ for the prayer times.
Stars: ✭ 151 (+459.26%)
Mutual labels:  prayer-times
PrayerTimes-Swift
Islamic Prayer (salah) Time calculation written in swift.
Stars: ✭ 47 (+74.07%)
Mutual labels:  prayer-times
CoronaVirusOutbreakAPI
A tiny and small program to crawler and analyze outbreak of COVID-19 in world and every country using PHP.
Stars: ✭ 20 (-25.93%)
Mutual labels:  php-api
pyIslam
pyIslam, a Python library to calculate prayer times, hijri date, qiblah direction and more
Stars: ✭ 68 (+151.85%)
Mutual labels:  prayer-times
Sirat-E-Mustaqeem
Islamic App with Complete Quran, Prayer time Api, Hadith, & Qibla Direction.
Stars: ✭ 119 (+340.74%)
Mutual labels:  prayer-times
Azkar-App
Desktop Application 💻 for Calculating Muslim prayer times 🕌 , Morning and Nights Azkar 🤲 with notification for random Azkar that pops-up in specific time.
Stars: ✭ 64 (+137.04%)
Mutual labels:  prayer-times
IslamBot
A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
Stars: ✭ 59 (+118.52%)
Mutual labels:  prayer-times
Mosque-Screen
Chat: https://discord.gg/CG7frj2 - Email: [email protected]. We do not provide any support, this is a volunteer-based project therefore we cannot commit to any time to resolve local issues.
Stars: ✭ 54 (+100%)
Mutual labels:  prayer-times
adhan-dart
Adhan for Dart / Muslim Prayer Times Library. Now retrieving Prayer time in Dart easier than ever.
Stars: ✭ 51 (+88.89%)
Mutual labels:  prayer-times
MuezzinAPI
A web server application for Islamic prayer times
Stars: ✭ 33 (+22.22%)
Mutual labels:  prayer-times

Waktu Solat PHP API

There are two version of the API, which are api.php and apiv2.php, and also a states and zones list fetcher script.

  1. api.php will fetch and parse the daily Prayer Time JSON data from JAKIM e-Solat website. This will only return prayer time for the current day.
  2. apiv2.php will fetch and parse prayer time for the chosen Zone for either a month, or for a whole year. This API fetch JSON data from JAKIM e-Solat website.
  3. zonefetcher.php will fetch and store the list of states and zones into the zone.json file. Always run this file first on fresh install, or every couple of months.

Dynamic jQuery Webpage

  • index.html and ./template/js/script.js
  • Fetch and display Malaysia's Prayer Time dynamically using jQuery and my PHP API
  • This version use HTML, Javascript and jQuery only in the main file.
  • Original PHP Project and using Solat.io API : https://github.com/afzafri/Waktu-Solat

Created By :

  1. Afif Zafri
  2. Date : 17/05/2016
  3. Contact Me : http://fb.me/afzafri

Update

  • 06/12/19
    • Updated zone.json. JAKIM have restructured the States and Zones list. I also added new script zonefetcher.php to automatically fetch and update the states and zones list from JAKIM website.
    • Updated API v1 to fetch data from JAKIM JSON data instead of the old XML data. API v1 now also included the day name and hijri date.
  • 15/10/19
    • Fixed API v2 by fetching data using new endpoint. JAKIM's changed their Waktu Solat web page which resulting in the API v2 to break.
  • 11/04/18
    • Update API v1 and v2 to convert time from 24h to 12h format and include am pm prefix
  • 08/04/18
    • Update API v1 to return states names and zones
    • Update the demo interface to use this updated API
  • 08/09/17
    • Waktu Solat API v2, apiv2.php
    • This new version will be able to fetch prayer time data for the whole Year or by each month for chosen Zone
  • 15/12/16
    • As for 15/12/16, this project no longer using Solat.io API.
    • This project will now using my own PHP API, api.php

Installation

Drop all files into your server

Usage

  • Select Country and Zone from the drop down menu.

  • API v1 Usage (api.php):

    1. To get list of states

      • http://localhost/api.php?getStates
    2. To get list of zones of a state

      • http://localhost/api.php?stateName=NAME , where NAME is the state name, ex: PERLIS
    3. To get the prayer time of a zone

      • http://localhost/api.php?zon=CODE , where CODE is the zone code, ex: PLS01 for Perlis
  • API v2 Usage (apiv2.php):

    1. Fetch data for a month

      • example: http://localhost/apiv2.php?zon=PLS01&tahun=2017&bulan=5
      • where "PLS01" is the zone code, 2017 is the year, 5 is the month
    2. Fetch data for a year

      • example: http://localhost/apiv2.php?zon=PLS01&tahun=2017
      • where "PLS01" is the zone code, 2017 is the year. No need to include the month
  • Zone Fetcher Usage (zonefetcher.php)

    1. Run the script and it will automatically fetch and store the latest JSON into the zone.json file.
      • http://localhost/zonefetcher.php

Credits

  1. JAKIM e-Solat: http://www.e-solat.gov.my/web/waktusolat.php
  2. API Inspiration by Solat.IO: http://Solat.IO
  3. jQuery Library: https://jquery.com/
  4. Bootstrap Library: http://getbootstrap.com/
  5. Loading Spinner svg: http://loading.io/
  6. References: http://ijat.my/e-solat-xmljsonp-api, http://stackoverflow.com/
  7. Sensei: Mohd Shahril (Thanks for convert time code and zone.json)

License

This library is under MIT license, please look at the LICENSE file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].