buchin/adzan

Compute prayer times given latitude, longitude, timezone

dev-master 2016-12-04 06:21 UTC

This package is auto-updated.

Last update: 2024-04-15 18:45:25 UTC


README

Compute prayer times given latitude, longitude, timezone

Installation

composer require buchin/adzan

Usage

use Buchin\Adzan\Adzan;

$adzan = new Adzan;
$adzan->setLatitude(6, 10);
$adzan->setLongitude(106, 49);
$adzan->setTimeZone(7);

// ['imsyak' => 'xx:xx', 'subuh' => 'xx:xx'...
$prayerTimes = $adzan->times(time());