Convert all Arabic numbers input to English Numbers
mostafamaklad/laravel-arabic-numbers is a Laravel package for convert all arabic numbers input to english numbers.
It currently has 2 GitHub stars and 1.211 downloads on Packagist (latest version v1.0).
Install it with composer require mostafamaklad/laravel-arabic-numbers.
Discover more Laravel packages by mostafamaklad
or browse all Laravel packages to compare alternatives.
Last updated
This package allows you to fix Arabic numbers input .
This package can be used in Laravel 5.4 and up.
You can install the package via composer:
composer require mostafamaklad/laravel-arabic-numbers
In app/Http/Kernel.php, register the middleware:
protected $middleware = [
//...
\Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class,
]
In bootstrap/app.php, register the middleware:
$app->middleware([
\Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class,
]);
If you need to EXTEND the existing ArabicNumbers middleware note that:
ArabicNumbers middleware needs to extend the Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers middleware /**
* The attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
//
];
Please see CHANGELOG for more information on what has changed recently.
composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.