PHPackages                             taghassan54/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. taghassan54/laravel-arabic-numbers

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

taghassan54/laravel-arabic-numbers
==================================

This package allows you to fix Arabic numbers input .

02PHP

Since Jan 15Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#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 taghassan54/laravel-arabic-numbers
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

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

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

### Lumen

[](#lumen)

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

```
$app->middleware([
    \TagHassan54\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 `TagHassan54\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)

- [Taj Hassan](https://github.com/taghassan54)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/41596304?v=4)[TAjELDEEN HASSAN](/maintainers/taghassan54)[@taghassan54](https://github.com/taghassan54)

---

Top Contributors

[![taghassan54](https://avatars.githubusercontent.com/u/41596304?v=4)](https://github.com/taghassan54 "taghassan54 (4 commits)")

### Embed Badge

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

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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