PHPackages                             osamz/quran-safahat - 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. osamz/quran-safahat

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

osamz/quran-safahat
===================

Holy Quran calculator that help to calculate pages between two Ayah.

1.0.0(3y ago)2101GPL-3.0-onlyPHP

Since Mar 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/osamz/QuranSafahat)[ Packagist](https://packagist.org/packages/osamz/quran-safahat)[ RSS](/packages/osamz-quran-safahat/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

[![License](https://camo.githubusercontent.com/481ff51f48dbd0b69408aaccd2b518a3d71897303d26623063eebf393874330b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d2d332e302d2d6f6e6c792d626c7565)](https://spdx.org/licenses/GPL-3.0-only.html)[![Tests Coverage](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/7b532190c703ec1e4142d0322abfe31b205fd22b2a8fe2e73ba7703f2b008cec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6f73616d7a2f517572616e53616661686174)](https://camo.githubusercontent.com/7b532190c703ec1e4142d0322abfe31b205fd22b2a8fe2e73ba7703f2b008cec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6f73616d7a2f517572616e53616661686174)

[للنسخة العربية انقر هنا](README.ar.md)

Quran Safahat
=============

[](#quran-safahat)

This library calculates length of Quran Clip (Makta') (مقطع) the pages from point (ayah, surah) to another.

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

[](#installation)

```
composer require osamz/quran-safahat

```

Usage
-----

[](#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.

License
-------

[](#license)

[GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html)

Authors
-------

[](#authors)

- [@osamz](https://www.github.com/osamz)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1194d ago

### Community

Maintainers

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

---

Top Contributors

[![osamz](https://avatars.githubusercontent.com/u/13044444?v=4)](https://github.com/osamz "osamz (10 commits)")

---

Tags

islamicquranquran-jsonquran-searchquran-web

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/osamz-quran-safahat/health.svg)

```
[![Health](https://phpackages.com/badges/osamz-quran-safahat/health.svg)](https://phpackages.com/packages/osamz-quran-safahat)
```

###  Alternatives

[jeremykenedy/slack-laravel

Laravel integration for the jeremykenedy/slack package, including facades and service providers.

54757.5k](/packages/jeremykenedy-slack-laravel)

PHPackages © 2026

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