moslempray is a API Manager to find pray time for Moslem developed for PHP and Laravel Framework.
There are 3 driver that available to use so far:
- aladhan (documentation) still WIP
- myquran (documentation)
- prayertimes (documentation 1) (doucumentation 2) still WIP
- PHP version ^7.3
You can install the package via composer:
composer require ianriizky/moslempray
Packagist: https://packagist.org/packages/ianriizky/moslempray
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Ianrizky\MoslemPray\MoslemPray;
use Illuminate\Support\Carbon;
// Common request
$moslemPray = MoslemPray::getPrayerTime('denpasar');
// Common request with specified date (use Carbon power)
// @see https://carbon.nesbot.com/docs/
$moslemPray = MoslemPray::getPrayerTime('denpasar', '2021-04-12');
$moslemPray = MoslemPray::getPrayerTime('denpasar', Carbon::today());
// Request using "myquran" driver
$moslemPray = MoslemPray::myquran()->getPrayerTimePerMonth('denpasar');
$moslemPray = MoslemPray::myquran()->getPrayerTimePerMonth('denpasar', 2021, 4);
phpunit
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
Role | Name |
---|---|
Owner | Septianata Rizky Pratama |