PHPackages                             still-code/ar-php-laravel - 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. still-code/ar-php-laravel

ActiveLibrary

still-code/ar-php-laravel
=========================

ar-php-laravel

2.0.4(1y ago)386.1k↓27.3%14[4 PRs](https://github.com/still-code/ar-php-laravel/pulls)MITPHPPHP ^7.1|^8.0|^8.1|^8.2CI passing

Since Apr 5Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/still-code/ar-php-laravel)[ Packagist](https://packagist.org/packages/still-code/ar-php-laravel)[ Docs](https://github.com/still-code/ar-php-laravel)[ GitHub Sponsors](https://github.com/atmonshi)[ RSS](/packages/still-code-ar-php-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (19)Used By (0)

[![](https://camo.githubusercontent.com/bc948737646f0edf52e6f387a416949f421bd65ba3680fb63f04ed0fac07c0ca/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323041722d5048502e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7374696c6c2d636f646525324661722d7068702d6c61726176656c267061747465726e3d627269636b57616c6c267374796c653d7374796c655f31266465736372697074696f6e3d41722d5048502b777261707065722b666f722b6c61726176656c266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313235707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/bc948737646f0edf52e6f387a416949f421bd65ba3680fb63f04ed0fac07c0ca/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323041722d5048502e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d7374696c6c2d636f646525324661722d7068702d6c61726176656c267061747465726e3d627269636b57616c6c267374796c653d7374796c655f31266465736372697074696f6e3d41722d5048502b777261707065722b666f722b6c61726176656c266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313235707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[![](https://camo.githubusercontent.com/52d4804a133f5fb65f661c2729a88d2e6c83a9a5fb68ada53d3b45f9daddc299/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374696c6c2d636f64652f61722d7068702d6c61726176656c)](https://packagist.org/packages/still-code/ar-php-laravel)[![](https://camo.githubusercontent.com/315b4edddd8d4f41b9c6d07a5163d6cf02f058065be79a2e61f43ee19d425aaa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374696c6c2d636f64652f61722d7068702d6c61726176656c)](https://packagist.org/packages/still-code/ar-php-laravel)[![](https://camo.githubusercontent.com/428218308de2b5954141d48b70b0fda708245f236e9808db3a057c22454ff17a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7374696c6c2d636f64652f61722d7068702d6c61726176656c)](https://github.com/still-code/ar-php-laravel)[![](https://camo.githubusercontent.com/279b042a5261a2254d26af8c1b35a47e1206c1b9768a91ddd709969897040b1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7374696c6c2d636f64652f61722d7068702d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/still-code/ar-php-laravel/actions?query=workflow%3AFix+PHP+code+style+issues+branch%3Amain)[![](https://github.com/still-code/ar-php-laravel/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/still-code/ar-php-laravel/actions/workflows/fix-php-code-style-issues.yml)

laravel package for the Ar-PHP Project
======================================

[](#laravel--package-for-the-ar-php-project)

this is just a wrapper to use with laravel for the Ar-PHP Library, for more details checkout [khaled-alshamaa: ar-php](https://github.com/khaled-alshamaa/ar-php)

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

[](#installation)

You can install the package via composer:

```
composer require still-code/ar-php-laravel
```

Available functions
-------------------

[](#available-functions)

#### Spell Numbers in the Arabic Idiom

[](#spell-numbers-in-the-arabic-idiom)

```
dump(ArPhpLaravel::int2str(123)); // مئة و ثلاثة و عشرون
dump(ArPhpLaravel::str2int('مئة و ثلاثة و عشرون')); // 123
```

#### English-Arabic Transliteration

[](#english-arabic-transliteration)

```
dump(ArPhpLaravel::en2ar('google')); // غوغل
dump(ArPhpLaravel::ar2en('خالِد الشَمعَة')); // Khalid Ash-Sham'ah
```

#### Arabic Gender Guesser

[](#arabic-gender-guesser)

Check the Gender

```
dump(ArPhpLaravel::isFemale('محمد')); // false
```

get the gender as string

```
dump(ArPhpLaravel::guessGender('محمد')); // Male
```

#### Parse any Arabic textual datetime description into timestamp

[](#parse-any-arabic-textual-datetime-description-into-timestamp)

```
dump(ArPhpLaravel::strtotime('الخميس القادم', time(), 'l dS F Y')); // Thursday 13th May 2021
```

#### Arabic Sentiment Analysis

[](#arabic-sentiment-analysis)

```
dump(ArPhpLaravel::arSentiment(TEXT));
```

#### Arabic Text Standardize

[](#arabic-text-standardize)

```
dump(ArPhpLaravel::standard(TEXT));
```

#### Arabic Auto Summarize

[](#arabic-auto-summarize)

```
dump(ArPhpLaravel::arSummary(TEXT));
```

#### Convert Money to string

[](#convert-money-to-string)

```
dump(ArPhpLaravel::money2str(123, 'SAR', 'ar')); // مئة و ثلاثة و عشرون ريالا
dump(ArPhpLaravel::money2str(123, 'SAR', 'en')); // 123 Riyal
dump(ArPhpLaravel::money2str(123, 'EGP', 'ar')); // مئة و ثلاثة و عشرون جنيها
```

#### Spell Numbers in the Arabic Idiom

[](#spell-numbers-in-the-arabic-idiom-1)

```
dump(ArPhpLaravel::int2indic(123)); // ١٢٣
```

#### Arabic Glyphs to Render Arabic Text

[](#arabic-glyphs-to-render-arabic-text)

```
dump(ArPhpLaravel::utf8Glyphs(1229));
```

#### translate arabic text to english, useful for slug generating

[](#translate-arabic-text-to-english-useful-for-slug-generating)

```
dump(ArPhpLaravel::translate('اهلا بالكل')); // Ahla Balkl
```

### Search with Eloquent and query Builder

[](#search-with-eloquent-and-query-builder)

Using search for arabic letters with Eloquent Builder

```
Model::searchAr('فلسطين','content')->get();
```

you can use the same with Query Builder:

```
DB::table('table_name')->searchAr('فلسطين','content')->get();
```

you can set the search mode `OR` (default) or `AND`

```
DB::table('table_name')->searchAr('فلسطين','content','OR')->get();
```

and it will find result for any of the words:

> فلسطينيون فلسطيني فلسطينية فلسطينيتين فلسطينيين فلسطينيان فلسطينيات فلسطينيوا

you can also sort the results by using:

```
DB::table('table_name')->orderAr('فلسطين','content')->get();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Khaled Alshamaa](https://github.com/khaled-alshamaa)
- [All Contributors](../../contributors)

Todo
----

[](#todo)

- write more tests
- add more functions from the main package
- add helpers for the Facade

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance70

Regular maintenance activity

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 75.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 ~101 days

Recently: every ~171 days

Total

15

Last Release

443d ago

Major Versions

1.7.0 → 2.0.02023-04-15

PHP version history (4 changes)1.0.0PHP ^7.1

1.4PHP ^7.1|^8.0

2.0.0PHP ^7.1|^8.0|^8.1

2.0.2PHP ^7.1|^8.0|^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1952412?v=4)[Lara Zeus](/maintainers/atmonshi)[@atmonshi](https://github.com/atmonshi)

---

Top Contributors

[![atmonshi](https://avatars.githubusercontent.com/u/1952412?v=4)](https://github.com/atmonshi "atmonshi (98 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")[![GoodM4ven](https://avatars.githubusercontent.com/u/121377476?v=4)](https://github.com/GoodM4ven "GoodM4ven (1 commits)")[![koossaayy](https://avatars.githubusercontent.com/u/6431084?v=4)](https://github.com/koossaayy "koossaayy (1 commits)")[![Smailancer](https://avatars.githubusercontent.com/u/15679510?v=4)](https://github.com/Smailancer "Smailancer (1 commits)")

---

Tags

ar-phplaravelphplaravelarabicarabic-sentimentarabic-numbersarabic-glyphsarabic-calendararabic-sql-queryarabic-segments-identifierar-php-laravelstill-code

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/still-code-ar-php-laravel/health.svg)

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

###  Alternatives

[khaled.alshamaa/ar-php

Set of functionalities enable Arabic website developers to serve professional search, present and process Arabic content in PHP

3312.5M25](/packages/khaledalshamaa-ar-php)[ab-alselwi/laravel-arabic-html

Convert laravel view to arabic html (pdf) by using ArPHP and dompdf with arabic fonts and text.

3528.7k](/packages/ab-alselwi-laravel-arabic-html)[yemenifree/laravel-arabic-numbers-middleware

auto transforms arabic/eastern to eastern/arabic numbers for i.e ١٢٣٤٥٦٧٨ to 12345678

18135.4k](/packages/yemenifree-laravel-arabic-numbers-middleware)[maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

414.5k](/packages/maherelgamil-arabicdatetime)

PHPackages © 2026

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