PHPackages                             jayeshmepani/panchang-core - 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. jayeshmepani/panchang-core

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

jayeshmepani/panchang-core
==========================

Authentic Vedic Panchanga calculation engine powered by the JPL Moshier Ephemeris FFI wrapper

7.0.2(3w ago)013MITPHPPHP &gt;=8.3CI passing

Since Mar 26Pushed 1mo agoCompare

[ Source](https://github.com/jayeshmepani/panchang-core)[ Packagist](https://packagist.org/packages/jayeshmepani/panchang-core)[ Fund](https://github.com/sponsors/jayeshmepani)[ GitHub Sponsors](https://github.com/jayeshmepani)[ RSS](/packages/jayeshmepani-panchang-core/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (78)Versions (19)Used By (0)

Panchang Core
=============

[](#panchang-core)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1f69daaa4708f04eb2745f958ecc46e89b16743a0cfd892492361489aa299085/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a61796573686d6570616e692f70616e6368616e672d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jayeshmepani/panchang-core)[![Total Downloads](https://camo.githubusercontent.com/0d898d20ded285ddf988be968d74c6d81c31d1d9b90bfe0b1e757b8d5897b7f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61796573686d6570616e692f70616e6368616e672d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jayeshmepani/panchang-core)[![PHP Version Require](https://camo.githubusercontent.com/386b96b2c26a2d62319ce3de0c389cf809dc4a4e7030247ddd583d1f4b67079d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a61796573686d6570616e692f70616e6368616e672d636f72653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jayeshmepani/panchang-core)[![License: MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

High-precision Hindu Panchang calculation engine for PHP 8.3+, powered by the JPL Moshier Ephemeris FFI wrapper.

It calculates Panchanga limbs, festivals, Muhurta windows, Karmakala timings, Chogadiya, Hora, Lagna tables, direction/Vaasa checks, eclipse visibility, and localized JSON outputs.

Highlights
----------

[](#highlights)

- Panchanga: Tithi, Vara, Nakshatra, Yoga, Karana
- Muhurta and Karmakala: Abhijit, Brahma Muhurta, Dur Muhurta, Nishita, Vijaya, Godhuli, Pradosha, Varjyam, Amrita Kaal
- Daily tables: Chogadiya, Hora, Prahara, 30 Muhurtas, Lagna intervals
- Muhurta devata sequence: Rudra-Ahi-Mitra day/night model aligned with Nārada Saṃhitā 9.1-5 and Kāśyapa/Vṛddha Vasiṣṭha attribution
- Festival engine: 326 unique festival identities and 90 unique vrat identities with tradition and regional handling
- Vaasa and direction checks: Disha Shool, Rahu Vaasa, Chandra Vaasa, Shiva Vaasa, Agni Vaasa, Yogini Vaasa
- Panchak rule output: Dhanishta pada 3 through Revati with entry-weekday subtype labels for Roga, Raja, Agni, Chora, Mrityu, and Shubha Panchaka
- Locales: English, Hindi, Gujarati
- Calendar types: Amanta and Purnimanta
- Works standalone or inside Laravel

Install
-------

[](#install)

```
composer require jayeshmepani/panchang-core
```

Requirements:

- PHP 8.3+
- PHP FFI extension enabled
- `jayeshmepani/jpl-moshier-ephemeris-php`
- `nesbot/carbon`

Enable FFI in `php.ini`:

```
extension=ffi
ffi.enable=1
```

For CLI verification:

```
php -r "echo extension_loaded('ffi') ? 'FFI loaded\n' : 'FFI not loaded\n';"
```

Quick Usage
-----------

[](#quick-usage)

```
