PHPackages                             geniusts/prayer-times - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. geniusts/prayer-times

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

geniusts/prayer-times
=====================

A PHP package to calculate prayer times

1.0.5(6y ago)1616.7k↓50%13MITPHPPHP &gt;=7

Since May 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/GeniusTS/prayer-times)[ Packagist](https://packagist.org/packages/geniusts/prayer-times)[ RSS](/packages/geniusts-prayer-times/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

Prayer times
============

[](#prayer-times)

A PHP library to calculate prayer times.

This project was inspired from [batoulapps/Adhan](https://github.com/batoulapps/Adhan) package.

Installation
------------

[](#installation)

```
	composer require geniusts/prayer-times
```

Usage
-----

[](#usage)

```
    use \GeniusTS\PrayerTimes\Prayer;
    use \GeniusTS\PrayerTimes\Coordinates;

    $prayer = new Prayer(new Coordinates($longitude, $latitude));
    // Or
    $prayer = new Prayer();
    $prayer->setCoordinates($longitude, $latitude);

    // Return an \GeniusTS\PrayerTimes\Times instance
    $times = $prayer->times('2017-5-9');
    $times->setTimeZone(+3);

    echo $times->fajr->format('h:i a');
```

Configurations
--------------

[](#configurations)

- Change the calculation method.

```
    // change instance value
    use \GeniusTS\PrayerTimes\Methods\World;

    $prayer->setMethod(new World);
    // Or
    $prayer->setMethod(Prayer::METHOD_MUSLIM_WORLD_LEAGUE);

    // change default value
    Prayer::setDefaultMethod(new World);
    // Or
    Prayer::setDefaultMethod(Prayer::METHOD_MUSLIM_WORLD_LEAGUE);
```

- Changing the mathhad of calculation Asr prayer.

```
    //Change instance value
    $prayer->setMathhab(Prayer::MATHHAB_HANAFI);

    //Change default value
    Prayer::setDefaultMathhab(Prayer::MATHHAB_HANAFI);
```

- Changing the high latitude rule.

```
    //Change instance value
    $prayer->setHighLatitudeRule(Prayer::HIGH_LATITUDE_MIDDLE_OF_NIGHT);

    //Change default value
    Prayer::setDefaultHighLatitudeRule(Prayer::HIGH_LATITUDE_MIDDLE_OF_NIGHT);
```

- Changing times adjustments.

```
    //Change instance value
    $prayer->setAdjustments(0, 2, 5, 3, 8, 4);

    //Change default value
    Prayer::setDefaultAdjustments(0, 2, 5, 3, 8, 4);
```

License
-------

[](#license)

This package is free software distributed under the terms of the MIT license.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~170 days

Recently: every ~203 days

Total

6

Last Release

2439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c9ec340bd6cc0cbc181d0c41f371d06be7c70742ddee6ad908d9f6f570123406?d=identicon)[aboudeh87](/maintainers/aboudeh87)

---

Top Contributors

[![aboudeh87](https://avatars.githubusercontent.com/u/10183425?v=4)](https://github.com/aboudeh87 "aboudeh87 (33 commits)")[![AmmarCodes](https://avatars.githubusercontent.com/u/351256?v=4)](https://github.com/AmmarCodes "AmmarCodes (1 commits)")[![aymanrb](https://avatars.githubusercontent.com/u/4629433?v=4)](https://github.com/aymanrb "aymanrb (1 commits)")

---

Tags

calculate-prayer-timesprayerprayer-times

### Embed Badge

![Health badge](/badges/geniusts-prayer-times/health.svg)

```
[![Health](https://phpackages.com/badges/geniusts-prayer-times/health.svg)](https://phpackages.com/packages/geniusts-prayer-times)
```

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
