Download the PHP package yemenifree/laravel-arabic-numbers-middleware without Composer

On this page you can find all versions of the php package yemenifree/laravel-arabic-numbers-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-arabic-numbers-middleware

Transform between (Arabic-english)/(eastern-Indian) numbers middleware for laravel

Latest Version on Packagist Build Status StyleCI Coverage Status Quality Score Total Downloads

A tiny package to transforms arabic/eastern* to eastern*/arabic numbers for i.e ١٢٣٤٥٦٧٨ to 12345678 before validations to avoid invalid integers error when pass eastern numbers by (ios/mac) users

Support version

Laravel laravel-modules
5.1 ^1.0
5.8 ^2.0
6.X ^2.1
8.X ^3.0
9.X ^4.0

Install

Via Composer

Usage

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

If you do run the package on Laravel 5.5+, package auto-discovery takes care of the magic of adding the service provider.

That's it! by default package automatic transform all eastern numbers to arabic for all requests

Package includes two middleware

You can use middleware for custom router for example

you can ignore fields from transform by pass fields name as parameters to middleware for example

inline ignore fields not work if auto_register_middleware enable and middleware you want to use inside auto_middleware option, instead you can set ignore fields in config file arabic-numbers-middleware.php

Optional

if you want customizes configuration you can publish the configuration

This is the content of the published config file arabic-numbers-middleware.php:

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-arabic-numbers-middleware with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yemenifree/laravel-arabic-numbers-middleware contains the following files

Loading the files please wait ....