PHPackages                             ameen-sarsour/ar-php - 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. ameen-sarsour/ar-php

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

ameen-sarsour/ar-php
====================

Clone of ar-php library

1.0.3(4y ago)836LGPL-3.0HTMLPHP &gt;=5.4.0

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ameen-sarsour/ar-php)[ Packagist](https://packagist.org/packages/ameen-sarsour/ar-php)[ Docs](http://www.ar-php.org/)[ RSS](/packages/ameen-sarsour-ar-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

ar-php
======

[](#ar-php)

This Library clone from [ar-php](http://ar-php.com/), It is a powerfull library to support Arabic in PHP.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require ameen-sarsour/ar-php

```

Usage
-----

[](#usage)

### Example Conver Hijri String to TimeStamp

[](#example-conver-hijri-string-to-timestamp)

```

use \ArPhp\Arabic;

$time = time();
$Arabic = new Arabic('StrToTime');

$str  = '1 رمضان 1439';
$int  = $Arabic->strtotime($str, $time);
$date = date('l dS F Y', $int);
echo "String: $str \n";
echo "TimeStamp: $int \n";
echo "Date: $date \n";

```

\##Yii2

### same Example

[](#same-example)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
     'strToTime'=>[
               'class' => \ArPhp\Arabic::class,
               'library' => '{{name of library eg. strToTime}}'
           ],
    ],
];
```

You can then call the function :

```
        $str  = '1 رمضان 1439';
        $int  = \Yii::$app->strToTime->strtotime($str, $time);
        $date = date('l dS F Y', $int);
        echo "String: $str \n";
        echo "TimeStamp: $int \n";
        echo "Date: $date \n";
        echo $message . "\n";
```

ArPHP Full Features
===================

[](#arphp-full-features)

enالعربيةlibrary nameExample Github linkExample ResultArabic text auto summarizationالتلخيص الآلي للنص العربيAutoSummarize[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/AutoSummarize.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/AutoSummarize.php)Advanced Arabic search (stem based)بحث متقدم بالعربية (بدلالة ساق الكلمة)Query[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Query.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Query.php)Present dates in Arabic or Hijriعرض التواريخ بالعربية أو الهجريةDate[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Date.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Date.php)Convert Hijri date into Unix timestampتحويل التاريخ الهجري إلى Unix timestampMktime[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Mktime.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Mktime.php)Parse Arabic textual datetime into timestampتحويل أي نص عربي يصف التاريخ إلى timestampStrToTime[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/StrToTime.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/StrToTime.php)Transliterate English words in Arabicالترجمة اللفظية للكلمات الإنجليزية بالعربيةTransliteration[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/ArTransliteration.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/ArTransliteration.php)Transliterate Arabic words in Englishالترجمة اللفظية للكلمات العربية بالإنجليزيةTransliteration[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/EnTransliteration.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/EnTransliteration.php)Spell numbers in Arabic idiomالتفقيط: كتابة الأرقام العربيةNumbers[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Numbers.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Numbers.php)Phonetically alike Arabic wordsالتشابه اللفظي للكلمات العربيةSoundex[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Soundex.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Soundex.php)Arabic character set auto detectionالتعرف الآلي على مجموعة المحارف العربيةCharsetD[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/CharsetD.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/CharsetD.php)Identify Arabic in multi language documentsتمييز النصوص العربية في الوثائق المتعددة اللغاتIdentifier[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Identifier.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Identifier.php)Identify names &amp; places in Arabic textتحديد الأسماء والأماكن في النص العربيWordTag[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/WordTag.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/WordTag.php)Guess gender of Arabic namesتخمين جنس الأسماء العربيةGender[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Gender.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Gender.php)Convert keyboard language programmaticallyتغيير لغة لوحة المفاتيح برمجياKeySwap[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/KeySwap.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/KeySwap.php)Calculate the time of Muslim prayerحساب أوقات صلاة المسلمينSalat[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Salat.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Salat.php)Compress string using Huffman-like codingضغط النصوص بشيفرة مشابهة لشيفرة هوفمانCompressStr[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/CompressStr.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/CompressStr.php)Standardize Arabic textنسيق النصوص العربيةStandard[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Standard.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Standard.php)Arabic stemmerاستخلاص ساق (جذر) الكلمةStemmer[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Stemmer.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Stemmer.php)Arabic Cities Listقائمة المدن العربية---[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/City.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/City.php)Informations about Arabic countriesمعلومات عن الدول العربية[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Info.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Info.php)Arabic text normalisationتسوية/توحيد النص العربيNormalise[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Normalise.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Normalise.php)Translate English words into Hieroglyphicsترجمة الكلمات الإنجليزية إلى الهيروغليفية[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Hiero.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Hiero.php)Translate English words into Phoenicianترجمة الكلمات الإنجليزية إلى الفينيقية[Example](https://github.com/ameen-sarsour/ar-php/blob/master/src/I18N/Arabic/Examples/Phoenician.php)[Result](http://www.ar-php.org/I18N/Arabic/Examples/Phoenician.php)ArPHP Official Site
===================

[](#arphp-official-site)

For full documentation [ar-php](http://ar-php.com/)

License
-------

[](#license)

GNU Lesser General Public License v3.0

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~623 days

Total

3

Last Release

1729d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.0.1PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1456868685c0037c1a87a21ee7e3da7ee2d9724e25578f4f4788eb130c09e443?d=identicon)[ameen.sarsour](/maintainers/ameen.sarsour)

---

Top Contributors

[![amintemp](https://avatars.githubusercontent.com/u/202498484?v=4)](https://github.com/amintemp "amintemp (9 commits)")

### Embed Badge

![Health badge](/badges/ameen-sarsour-ar-php/health.svg)

```
[![Health](https://phpackages.com/badges/ameen-sarsour-ar-php/health.svg)](https://phpackages.com/packages/ameen-sarsour-ar-php)
```

###  Alternatives

[inertiaui/modal

Inertia Modal

237298.3k](/packages/inertiaui-modal)

PHPackages © 2026

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