Skip to content
A simple website that displays Holy Quran and Hadith text
PHP JavaScript HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
framework
islamcompanion
.htaccess
CHANGELOG.md
LICENSE
README.md
autoload.php
favicon.ico
index.php

README.md

Islam Companion Website

Introduction

The "Islam Companion website" project is a website that allows users to read Holy Quran and Hadith text. It also allows users to subscribe to Holy Quran and Hadith by email. An example of the Islam Companion website is the Islam Companion website

The goal of the Islam Companion website is to provide a basic website that displays Holy Quran and Hadith data. The user may customize this website according to their requirements.

Features

The Islam Companion website has the following features:

  • It has a reader that displays Holy Quran verses
  • It has a reader that displays Hadith text
  • It allows users to get Quranic verses and Hadith by email
  • It allows downloading Hadith database in .sql .sqlite formats
  • It allows users of the website to send a message to the website administrator
  • The source code is available under GPL License
  • The source code is well commented, modular and easy to update

Limitations

The Islam Companion website has the following limitations:

  • The Islam Companion website was designed using JavaScript modules which are not supported by older browsers

Requirements

The Islam Companion website requires Php >= 7.2. It also requires MySQL server >= 5.6. For sending emails, the website requires the Mail and Mail Mime pear packages.

Installation

The following steps can be used to install the "Islam Companion" project on your own server:

  • Install the Islam Companion API
  • Download the source code from GitHub
  • Move the source code to the document root of a virtual host
  • Download the contents of the database from: here
  • Extract the downloaded file
  • Create a database and import the contents of the sql file to the database. Note down the credentials used for connecting to the database
  • Enter the database credentials in the file islamcompanion/config/RequiredObjects.php
  • In the file: islamcompanion/Config.php, on line 32 enter the domain names that will be used to access the website
  • Customize the following variables in the file: islamcompanion/config/General.php. $config['app_name'], $config['dev_mode'] and $config['site_url']
  • Customize the variables in the file: islamcompanion/config/Custom.php. The comments explain what each variable is used for
  • Set the $config['pear_folder_path'] variable in the file: islamcompanion/config/Path.php. The variable should be set to the path of the pear installation.
  • Visit the website in a browser
  • The layout and text of the website can be edited in html files inside the folder: islamcompanion/ui/html. For example to edit the website header, the file: islamcompanion/ui/html/base/header.html needs to be edited
You can’t perform that action at this time.