PHPackages                             syrian-open-source/php-arabic-diff-for-human - 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. syrian-open-source/php-arabic-diff-for-human

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

syrian-open-source/php-arabic-diff-for-human
============================================

PHP Package to convert time difference to Arabic human readable string

v1.1.1(4y ago)9102MITPHP

Since Dec 30Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Syrian-Open-Source/php-arabic-diff-for-human)[ Packagist](https://packagist.org/packages/syrian-open-source/php-arabic-diff-for-human)[ RSS](/packages/syrian-open-source-php-arabic-diff-for-human/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Arabic Diff For Humans
======================

[](#arabic-diff-for-humans)

PHP Package to convert time difference to Arabic human readable string

##### 1 - Dependency

[](#1---dependency)

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:

```
composer require syrian-open-source/php-arabic-diff-for-human
```

Usage
-----

[](#usage)

Convert from string date, this feature will work to compare years, months,days,minutes, and seconds. You can pass the date as a string with any format.

```
        $instance = (new ArabicDiffForHumans());
        $time = "2018-1-1";
        echo $instance->getFromDateString($time);
        // if the current date 2022-1-1 forexample, the result should be: "منذ 4 سنين"
```

Convert from string date, this feature will work to compare years, months,days,minutes, and seconds. You can pass the date as a string with any format.

```
        $instance = (new ArabicDiffForHumans());
        $time = "2018-1-1";
        echo $instance->get(strtotime($time));
        // if the current date 2022-1-1 forexample, the result should be: "منذ 4 سنين"
```

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](https://github.com/syrian-open-source/php-arabic-diff-for-human/blob/master/CHANGELOG.md) for more information about what has changed or updated or added recently.

Security
--------

[](#security)

If you discover any security related issues, please email them first to , if we do not fix it within a short period of time please open a new issue describing your problem.

Credits
-------

[](#credits)

- [Abdussalam M. Al-Ali](https://www.linkedin.com/in/abdussalam-alali/)
- [All contributors](https://github.com/syrian-open-source/php-arabic-diff-for-human/graphs/contributors)

About Syrian Open Source
------------------------

[](#about-syrian-open-source)

The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the Syrian software community, and also contributes to raising the efficiency of developers by working on distributed systems and teams.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

1599d ago

### Community

Maintainers

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

---

Top Contributors

[![karam-mustafa](https://avatars.githubusercontent.com/u/71431942?v=4)](https://github.com/karam-mustafa "karam-mustafa (19 commits)")[![abdussalam-alali](https://avatars.githubusercontent.com/u/61018710?v=4)](https://github.com/abdussalam-alali "abdussalam-alali (10 commits)")[![RoduanKD](https://avatars.githubusercontent.com/u/37983260?v=4)](https://github.com/RoduanKD "RoduanKD (3 commits)")

---

Tags

arabicdatephpphp-composerphp-datetimephp-libraryphp-packagetimestamplaravelsyrian-open-source

### Embed Badge

![Health badge](/badges/syrian-open-source-php-arabic-diff-for-human/health.svg)

```
[![Health](https://phpackages.com/badges/syrian-open-source-php-arabic-diff-for-human/health.svg)](https://phpackages.com/packages/syrian-open-source-php-arabic-diff-for-human)
```

###  Alternatives

[stechstudio/laravel-php-cs-fixer

Easily format your Laravel Code with this Configuration file and accompanying artisan command.

146718.6k2](/packages/stechstudio-laravel-php-cs-fixer)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)[syrian-open-source/laravel-youtube-iframe-generator

Laravel package allows you to generate an iframe tag with a video player depending on a youtube URL.

184.2k](/packages/syrian-open-source-laravel-youtube-iframe-generator)

PHPackages © 2026

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