mostafamaklad / laravel-arabic-numbers
Convert all Arabic numbers input to English Numbers
Installs: 1 200
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.4.0
- laravel/framework: ^5.0.0
Requires (Dev)
- phpunit/phpunit: ~4.0|~5.0|~6.0|~7.0
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-11-30 02:13:36 UTC
README
laravel-arabic-numbers
This package allows you to fix Arabic numbers input .
Table of contents
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
Laravel
In app/Http/Kernel.php
, register the middleware:
protected $middleware = [ //... \Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class, ]
Lumen
In bootstrap/app.php
, register the middleware:
$app->middleware([ \Maklad\ArabicNumbers\Http\Middleware\ArabicNumbers::class, ]);
Extending
If you need to EXTEND the existing ArabicNumbers
middleware note that:
- Your
ArabicNumbers
middleware needs to extend theMaklad\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
Please see CHANGELOG for more information on what has changed recently.
Testing
composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security-related issues, please email dev.mostafa.maklad@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.