PHPackages                             abdussalam/arabicdiffforhumans - 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. abdussalam/arabicdiffforhumans

ActiveLibrary

abdussalam/arabicdiffforhumans
==============================

Generating an Arabic human-readable date difference

v2.0(4y ago)315MITPHP

Since Jun 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/abdussalam-alali/Arabic-Diff-for-human-php-package)[ Packagist](https://packagist.org/packages/abdussalam/arabicdiffforhumans)[ RSS](/packages/abdussalam-arabicdiffforhumans/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Arabic diffForHumans()
======================

[](#arabic-diffforhumans)

---

### Description:

[](#description)

Generating Arabic human-readable strings for the time difference between the current date and a given date

### Examples

[](#examples)

Current Date: 2021-06-18 9:58pm , Given date: 2021-06-18 10:00pm

```
    result : منذ دقيقتين

```

Current Date: 2021-06-14 9:58pm , Given date: 2021-06-18 10:00pm

```
    result : منذ 4 أيام

```

### Installation

[](#installation)

Using composer:
`composer require abdussalam/arabicdiffforhumans`

### Usage:

[](#usage)

1- Get Diff from timestamp :

```
use Abdussalam\ArDiffForHumans\ArabicDiffForHumans;

ArabicDiffForHumans::get($timestamp);
```

Example:

```
    // Current date 2021-06-18 10:09pm
    $time = "2018-1-1";
    $timeStamp = strtotime($time);
    echo ArabicDiffForHumans::get($timeStamp);
// منذ 3 سنين
```

2- Get Diff from timestamp :

```
use Abdussalam\ArDiffForHumans\ArabicDiffForHumans;

ArabicDiffForHumans::getFromDateString($dateString);
```

Example:

```
    // Current date 2021-06-18 10:09pm
    $time = "2018-1-1";

    echo ArabicDiffForHumans::getFromDateString($time);
// منذ 3 سنين
```

### In Blade view:

[](#in-blade-view)

```
    {{ Abdussalam\ArDiffForHumans\ArabicDiffForHumans::get($timeStamp) }}
   {{ Abdussalam\ArDiffForHumans\ArabicDiffForHumans::getFromDateString($dateString) }}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

3

Last Release

1789d ago

Major Versions

v1.2 → v2.02021-06-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/997714?v=4)[Abdussalam](/maintainers/Abdussalam)[@abdussalam](https://github.com/abdussalam)

---

Top Contributors

[![abdussalam-alali](https://avatars.githubusercontent.com/u/61018710?v=4)](https://github.com/abdussalam-alali "abdussalam-alali (4 commits)")

### Embed Badge

![Health badge](/badges/abdussalam-arabicdiffforhumans/health.svg)

```
[![Health](https://phpackages.com/badges/abdussalam-arabicdiffforhumans/health.svg)](https://phpackages.com/packages/abdussalam-arabicdiffforhumans)
```

PHPackages © 2026

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