PHPackages                             ahmedsaoud31/arabic-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. [Localization &amp; i18n](/categories/localization)
4. /
5. ahmedsaoud31/arabic-laravel

ActiveLibrary[Localization &amp; i18n](/categories/localization)

ahmedsaoud31/arabic-laravel
===========================

Arabic Laravel is the addition of Arabic Language

108.7k4PHP

Since Jul 10Pushed 7y ago4 watchersCompare

[ Source](https://github.com/ahmedsaoud31/arabic-laravel)[ Packagist](https://packagist.org/packages/ahmedsaoud31/arabic-laravel)[ RSS](/packages/ahmedsaoud31-arabic-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

arabic-laravel
==============

[](#arabic-laravel)

Arabic package for laravel, Arabic date, build substring from pre-configured arabic string, Arabic number, and sentence includs "since YY MM DD HH:MM:SS" in Arabic format.

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

[](#installation)

### With Composer

[](#with-composer)

```
$ composer require ahmedsaoud31/arabic-laravel dev-master

```

or

```
{
    "require": {
        "ahmedsaoud31/arabic-laravel": "dev-master"
    }
}
```

##### run command "composer update" in your project root

[](#run-command-composer-update-in-your-project-root)

Use
===

[](#use)

### Ex1:

[](#ex1)

```
	use Arabic\Arabic;
	...
	$arabicText = 'إضافة اللغة العربية لإطار العمل لارافيل';
	$len = 40;
	echo Arabic::cut($arabicText, $len);

```

\###outputs

إضافة اللغة العربية...

### Ex2:

[](#ex2)

##### first argument format and second argument are the time in timestamps or strtotime php functions input format

[](#first-argument-format-and-second-argument-are-the-time-in-timestamps-or-strtotime-php-functions-input-format)

##### if second argument not set, the server time will be used instead.

[](#if-second-argument-not-set-the-server-time-will-be-used-instead)

```
echo Arabic::adate('w j من F Y g:i A');

```

### outputs

[](#outputs)

٠ ١ من فبراير ٢٠١٥ ١:٠١ مساءاً

### Ex3:

[](#ex3)

```
     echo Arabic::num('12.09');

```

### outputs

[](#outputs-1)

١٢٫٠٩

### Ex4:

[](#ex4)

##### time format in timestamps or strtotime php functions input format

[](#time-format-in-timestamps-or-strtotime-php-functions-input-format)

```
echo 'منذ '.Arabic::since('1-1-2015');

```

### outputs

[](#outputs-2)

منذ ثوان

منذ 32 دقيقة

منذ ساعة و 20 دقيقة

منذ 10 ساعات و 10 دقائق

منذ يوم و 15 دقيقة

منذ يوم و ساعة

منذ يوم و 12 ساعة

منذ إسبوع و ثوان

منذ إسبوع و ساعة

منذ إسبوع و 5 أيام

منذ شهر و يوم

منذ شهر و إسبوع

منذ شهر و إسبوعان

منذ 10 أشهر و 6 أيام

منذ عام و إسبوع

منذ عام و شهر

منذ 3 أعوام و 5 أشهر

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4484348?v=4)[أحمد أبوالسعود](/maintainers/ahmedsaoud31)[@ahmedsaoud31](https://github.com/ahmedsaoud31)

---

Top Contributors

[![ahmedsaoud31](https://avatars.githubusercontent.com/u/4484348?v=4)](https://github.com/ahmedsaoud31 "ahmedsaoud31 (10 commits)")[![poode](https://avatars.githubusercontent.com/u/275428?v=4)](https://github.com/poode "poode (2 commits)")

### Embed Badge

![Health badge](/badges/ahmedsaoud31-arabic-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedsaoud31-arabic-laravel/health.svg)](https://phpackages.com/packages/ahmedsaoud31-arabic-laravel)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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