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

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

outhebox/laravel-fix-arabic-numbers
===================================

Auto Convert all Arabic numbers input to English Numbers For Laravel framework &amp; nova

v1.0(6y ago)053MITPHPPHP &gt;=5.6.4

Since Dec 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MohmmedAshraf/laravel-fix-arabic-numbers)[ Packagist](https://packagist.org/packages/outhebox/laravel-fix-arabic-numbers)[ Docs](https://github.com/MohmmedAshraf/laravel-fix-arabic-numbers)[ RSS](/packages/outhebox-laravel-fix-arabic-numbers/feed)WikiDiscussions master Synced 1mo ago

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

Laravel - Auto Fix Arabic Numbers
=================================

[](#laravel---auto-fix-arabic-numbers)

This package allows you to auto fix Arabic numbers form inputs.

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

[](#installation)

This package can be used in Laravel 5.4 and up.

You can install the package via composer:

```
composer require outhebox/laravel-fix-arabic-numbers
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

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

```
protected $middleware = [
    //...
    \OutheBox\FixArabicNumbers\Http\Middleware\FixArabicNumbers::class,
]
```

### Lumen

[](#lumen)

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

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

Extending
---------

[](#extending)

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

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

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

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

2341d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fafcf25aad612ce33476889bc889bafe60e215d045c23778007218e475c8e47?d=identicon)[MohammedAshraf](/maintainers/MohammedAshraf)

---

Top Contributors

[![MohmmedAshraf](https://avatars.githubusercontent.com/u/44909285?v=4)](https://github.com/MohmmedAshraf "MohmmedAshraf (3 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")

---

Tags

middlewarelaravelnumbersarabic

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[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)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[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)
