osamz / quran-safahat
Holy Quran calculator that help to calculate pages between two Ayah.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/osamz/quran-safahat
Requires (Dev)
- phpunit/phpunit: 10.0.*
This package is auto-updated.
Last update: 2025-10-21 20:42:24 UTC
README
Quran Safahat
This library calculates length of Quran Clip (Makta') (مقطع) the pages from point (ayah, surah) to another.
Installation
composer require osamz/quran-safahat
Usage
$startAya = $helper->getCheckedAyaPoint("النازعات", 17); $endAya = $helper->getCheckedAyaPoint("المرسلات", 50); $clip = new QuranClip($startAya, $endAya); $quran = new QuranNaskhEdition($quranData); $quranCalculator = new QuranCalculator($quran); $clipSize = $quranCalculator->calculate($clip); echo "Pages: $clipSize->pages, and $clipSize->lines lines."; // Pages: 4, and 1 lines.
see: examples folder for detailed example.