PHPackages                             prayerzone/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. [API Development](/categories/api)
4. /
5. prayerzone/prayer-times

ActiveLibrary[API Development](/categories/api)

prayerzone/prayer-times
=======================

Official PHP SDK for the pray.zone prayer-times API.

v0.1.0(today)00MITPHPPHP &gt;=8.1CI passing

Since Jul 31Pushed todayCompare

[ Source](https://github.com/PrayerZone/prayer-times-sdk-php)[ Packagist](https://packagist.org/packages/prayerzone/prayer-times)[ Docs](https://pray.zone/api)[ RSS](/packages/prayerzone-prayer-times/feed)WikiDiscussions main Synced today

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

PrayerZone PHP SDK
==================

[](#prayerzone-php-sdk)

[![CI](https://github.com/PrayerZone/prayer-times-sdk-php/actions/workflows/ci.yml/badge.svg)](https://github.com/PrayerZone/prayer-times-sdk-php/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/147cc5ea5677bc21581361c7e65b3bf61ae2ff05e15bc5fa325ad2ca6add79e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7072617965727a6f6e652f7072617965722d74696d65732e737667)](https://packagist.org/packages/prayerzone/prayer-times)[![PHP](https://camo.githubusercontent.com/6163c93e03f7e49db9126d2621e69631fdc2b288d5322be2b8e90ae6c85c8f7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7072617965727a6f6e652f7072617965722d74696d65732e737667)](https://packagist.org/packages/prayerzone/prayer-times)[![MIT License](https://camo.githubusercontent.com/1f1ed19506ba7bd26b01ecb1cec8783945b381ae5091589577f7fa2138650eba/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3037383535622e737667)](LICENSE)

The official, typed PHP client for the public [PrayerZone prayer-times API](https://pray.zone/api).

Use it in Laravel, Symfony, WordPress, Drupal, command-line applications, scheduled jobs, and any modern PHP 8.1+ project.

Features
--------

[](#features)

- Immutable, typed response objects
- City and mosque prayer schedules
- Nearby mosque discovery
- Qibla and calculation metadata
- Eight supported languages through a backed enum
- Request timeout and exponential retries
- In-memory response cache
- Structured, actionable exceptions
- Injectable transport for tests and custom infrastructure
- No framework dependency

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

[](#installation)

```
composer require prayerzone/prayer-times
```

PHP 8.1 or later with the JSON and cURL extensions is required.

Quick start
-----------

[](#quick-start)

```
