ianriizky / moslempray
API Manager to find pray time for Moslem developed for PHP and Laravel Framework
v1.0.5
2021-04-22 15:25 UTC
Requires
- php: ^7.3
- guzzlehttp/guzzle: >=5.0
- illuminate/http: >=7.0
- illuminate/support: >=7.0
- spatie/data-transfer-object: ^1.0
- spatie/enum: ^2.0
Requires (Dev)
- filp/whoops: >=1.0
- phpunit/phpunit: >7.0
- symfony/var-dumper: >=2.0
This package is auto-updated.
Last update: 2024-12-22 23:17:44 UTC
README
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
Software requirements
- PHP version ^7.3
Instalation
You can install the package via composer:
composer require ianriizky/moslempray
Packagist: https://packagist.org/packages/ianriizky/moslempray
Usage
<?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);
Testing
phpunit
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.