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 yesterday

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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

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://www.gravatar.com/avatar/6d133809f991f1622e82d5440d1b69754dda309fc93123538bf4dbc92baac32d?d=identicon)[ahmedsaoud31](/maintainers/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

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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