PHPackages                             zachweix/php-zmanim - 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. zachweix/php-zmanim

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

zachweix/php-zmanim
===================

Port of KosherJava to PHP

v3.0.1(6mo ago)184.9k↑125%[3 issues](https://github.com/zachweix/PhpZmanim/issues)LGPL-2.1-onlyPHP

Since Apr 8Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/zachweix/PhpZmanim)[ Packagist](https://packagist.org/packages/zachweix/php-zmanim)[ RSS](/packages/zachweix-php-zmanim/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

PhpZmanim
=========

[](#phpzmanim)

A PHP port of the [KosherJava Zmanim API](https://kosherjava.com) from Eliyahu Hershfeld (code at the [KosherJava Zmanim project](https://github.com/KosherJava/zmanim)). See Kosher Java documentation for comments for every class variable and method. See below for how to install and a more detailed list of what you can access and methods you can call. Once instantiated, you can ask for many Zmanim right out of the gate:

```
$zmanim = Zmanim::create(2019, 2, 22, 'Lakewood', 40.0721087, -74.2400243, 39.57, 'America/New_York');
$zmanim->tzais72->format('Y-m-d\TH:i:sP'); // 2019-02-22T18:52:38-05:00

$jewishCalendar = Zmanim::jewishCalendar(Carbon::createFromDate(2023, 9, 30)); // This will give you a Jewish calendar date for the given date
$jewishCalendar = Zmanim::jewishCalendar(5784, 7, 15); // This will give the same date, but with the Jewish date given as parameters
$jewishCalendar->isRoshHashana(); // false
$jewishCalendar->isSuccos(); // true

$daf = $jewishCalendar->getDafYomiBavli();
$format = Zmanim::format();
$format->formatDafYomiBavli($daf); // Kiddushin 48

$jewishCalendar = Zmanim::jewishCalendar(5784, 7, 26);
$format->formatParsha($jewishCalendar); // Bereshis
```

Installation (with Composer)
----------------------------

[](#installation-with-composer)

```
$ composer require zachweix/php-zmanim

```

```
{
    "require": {
        "zachweix/php-zmanim": "^2.0"
    }
}
```

Setup
-----

[](#setup)

```
