jakim/esolat

There is no license information available for the latest version (1.0) of this package.

E-Solat JAKIM Library Wrapper

1.0 2015-01-27 14:54 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:34:40 UTC


README

Install

composer require jakim/esolat

Usage

use Jakim\Solat\Zon;
use Jakim\Solat\Waktu;

$zones = Zon::getAllZone(); // return array

$zon = new Zon('sgr01');
echo $zon->getDescription(); // Gombak,H.Selangor,Rawang, H.Langat,Sepang,Petaling,  S.Alam
echo $zon->getNegeri(); // SELANGOR

$waktu = new Waktu($zon);

// get today waktu
$waktu->getToday(); // return array

// get weekly waktu
$waktu->getWeekly(); // return array

// get current month waktu
$waktu->getMonthly(); // return array

// get monthly waktu on October 2013
$waktu->getMonthly(10, 2013); // return array

Todo

  • Add more tests