PHPackages                             ahmedsaoud31/arabic - 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. ahmedsaoud31/arabic

ActivePlugin

ahmedsaoud31/arabic
===================

Arabic package for laravel4, arabic date, cut arabic string, arabic numer and since arabic format

17605PHP

Since Nov 9Pushed 8y ago3 watchersCompare

[ Source](https://github.com/ahmedsaoud31/Arabic-laravel4)[ Packagist](https://packagist.org/packages/ahmedsaoud31/arabic)[ RSS](/packages/ahmedsaoud31-arabic/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Updated for Laravel 5 or any other version of Laravel or use it alone
=====================================================================

[](#updated-for-laravel-5-or-any-other-version-of-laravel-or-use-it-alone)

[Updated Arabic Laravel](https://github.com/ahmedsaoud31/arabic-laravel)

Arabic-laravel4
===============

[](#arabic-laravel4)

Arabic package for laravel4, arabic date, cut arabic string, arabic numer and since arabic format

\#install

##### open composer.json file in your project root and add package require

[](#open-composerjson-file-in-your-project-root-and-add-package-require)

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

```

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

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

##### go to app/config/app.php and add to Providers array this line

[](#go-to-appconfigappphp-and-add-to--providers-array-this-line)

```
'Ahmedsaoud31\Arabic\ArabicServiceProvider',

```

Use
===

[](#use)

### Ex1:

[](#ex1)

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

```

### outbuts

[](#outbuts)

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

### Ex2:

[](#ex2)

##### first argument format and scound argument the time in timesstamps or strtotime php functions input format

[](#first-argument-format-and-scound-argument-the-time-in-timesstamps-or-strtotime-php-functions-input-format)

##### if scound argument not set, now server time will be use

[](#if-scound-argument-not-set-now-server-time-will-be-use)

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

```

### outbuts

[](#outbuts-1)

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

### Ex3:

[](#ex3)

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

```

### outbuts

[](#outbuts-2)

١٢٫٠٩

### Ex4:

[](#ex4)

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

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

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

```

### outbuts

[](#outbuts-3)

منذ ثوان

منذ 32 دقيقة

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

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

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

منذ يوم و ساعة

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

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

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

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

منذ شهر و يوم

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

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

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

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

منذ عام و شهر

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### 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 (4 commits)")

### Embed Badge

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

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

PHPackages © 2026

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