PHPackages                             mostafamaklad/laravel-arabic-numbers - 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. mostafamaklad/laravel-arabic-numbers

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

mostafamaklad/laravel-arabic-numbers
====================================

Convert all Arabic numbers input to English Numbers

v1.0(7y ago)21.2k2MITPHPPHP &gt;=5.4.0

Since Oct 10Pushed 2y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

[![ReadMeSupportPalestine](https://raw.githubusercontent.com/Safouene1/support-palestine-banner/master/banner-support.svg)](https://sahem.ksrelief.org/Pages/ProgramDetails/1ca8852b-9e6d-ee11-b83f-005056ac5498)

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

[](#laravel-arabic-numbers)

[![StandWithPalestine](https://raw.githubusercontent.com/Safouene1/support-palestine-banner/master/StandWithPalestine.svg)](https://sahem.ksrelief.org/Pages/ProgramDetails/1ca8852b-9e6d-ee11-b83f-005056ac5498)[![Latest Version on Packagist](https://camo.githubusercontent.com/17356b7703fd0905faf09ac363e6bb1a2a21bc5286fc8c59856b6f93dbc32f3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](../../releases)[![Software License](https://camo.githubusercontent.com/74bf1d78a83e6d1bd2f6d4160d9eb6453150dac599e91969f55ed744416e3ea7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/615e3f9fe897d5cdf06144e15a04c87d777628102e39a8112471f8986ccf4868/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mostafamaklad/laravel-arabic-numbers)[![Scrutinizer](https://camo.githubusercontent.com/794e922f6ee9aea6c9ab308666c43001c2a6b8ced01d1bdab572b47ccd36cb1e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mostafamaklad/laravel-arabic-numbers)[![Maintainability](https://camo.githubusercontent.com/a4882f9fa4c67663c3ec0ce927fdceae70e1d27352fc8d149847b6906542814e/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63653737316135303834363034623563386665622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/mostafamaklad/laravel-arabic-numbers/maintainability)[![Codacy Badge](https://camo.githubusercontent.com/ae9ded64ee019e7ee9e266d68cfddb3e51ba2ad5122bd24c828a22443e789bec/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6435393531346434653036363435633062663839303030663234393163666561)](https://www.codacy.com/app/mostafamaklad/laravel-arabic-numbers?utm_source=github.com&utm_medium=referral&utm_content=mostafamaklad/laravel-arabic-numbers&utm_campaign=Badge_Grade)[![StyleCI](https://camo.githubusercontent.com/a472bfde8a70c1d9317ce1615473ec19173fd514556b05ac7c0fcf995f42edd4/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135323438343236372f736869656c643f7374796c653d666c61742d737175617265)](https://styleci.io/repos/152484267)[![Coverage Status](https://camo.githubusercontent.com/1bc8361a76358c677f5faafcb8ed57341248e259f6ef77f4b60baa455cdd645e/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/mostafamaklad/laravel-arabic-numbers)[![Total Downloads](https://camo.githubusercontent.com/0ec5e8cdfb0ccce9865abf277f17b41883f0ab68eabb6e4ab3b77a63c55da6b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f73746166616d616b6c61642f6c61726176656c2d6172616269632d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mostafamaklad/laravel-arabic-numbers)

This package allows you to fix Arabic numbers input .

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Laravel](#laravel)
    - [Lumen](#lumen)
- [Extending](#extending)
- [Change log](#change-log)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

This package can be used in Laravel 5.4 and up.

You can install the package via composer:

```
composer require mostafamaklad/laravel-arabic-numbers
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

In `app/Http/Kernel.php`, register the middleware:

```
protected $middleware = [
    //...
    \Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class,
]
```

### Lumen

[](#lumen)

In `bootstrap/app.php`, register the middleware:

```
$app->middleware([
    \Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class,
]);
```

Extending
---------

[](#extending)

If you need to EXTEND the existing `ArabicNumbers` middleware note that:

- Your `ArabicNumbers` middleware needs to extend the `Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers` middleware
- Add the fields you want to except form the middle ware to

```
    /**
     * The attributes that should not be trimmed.
     *
     * @var array
     */
    protected $except = [
        //
    ];
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mostafa Maklad](https://github.com/mostafamaklad)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2822d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1166483?v=4)[Mostafa Abd El-Salam Maklad](/maintainers/mostafamaklad)[@mostafamaklad](https://github.com/mostafamaklad)

---

Top Contributors

[![mostafamaklad](https://avatars.githubusercontent.com/u/1166483?v=4)](https://github.com/mostafamaklad "mostafamaklad (12 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")

---

Tags

laravellaravel-localizationlaravel-localslaravel-middlewaremiddlewarelaravelnumbersarabicMakladmostafamakladmostafa

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8015.8k](/packages/firefly-iii-data-importer)[yemenifree/laravel-arabic-numbers-middleware

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

18135.7k](/packages/yemenifree-laravel-arabic-numbers-middleware)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k30](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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