Download the PHP package sadegh19b/laravel-persian-validation without Composer

On this page you can find all versions of the php package sadegh19b/laravel-persian-validation. 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-persian-validation

Laravel Persian Validation

Laravel Persian Validation Provides validation for Persian alphabet, number and etc.

Requirement

Install

Via Composer

Publishing Language Files

To publish the language files for custom validation messages, execute the following command. This will place the file at resources/lang/{locale}/persian-validation.php.

Usage

You can access to validation rules by passing the rules key according blew following table:

Rules Descriptions Acceptable Examples
persian_alpha Persian alphabet صادق
persian_num Persian numbers ۱۲۳۴
persian_alpha_num Persian alphabet and numbers صادق۱۲۳۴
persian_alpha_eng_num Persian alphabet and numbers with english numbers صادق۱۲34
persian_not_accept Doesn't accept Persian alphabet and numbers cant be persian
shamsi_date Check shamsi (jalali) date with format(Y/m/d) or format(Y-m-d) 1373/3/19
shamsi_date:persian Check shamsi (jalali) date with format(Y/m/d) or format(Y-m-d) with persian number ۱۳۷۳/۳/۱۹
shamsi_date_between:1300,1400 Check shamsi (jalali) date with format(Y/m/d) or format(Y-m-d) between years 1373/3/19
shamsi_date_between:1300,1400,persian Check shamsi (jalali) date with format(Y/m/d) or format(Y-m-d) between years with persian number ۱۳۷۳/۳/۱۹
ir_mobile Iranian mobile numbers 00989173456789, +989173456789, 989173456789, 09173456789, 91712345678
ir_mobile:zero_code Iranian mobile numbers with double zero country code 00989173456789
ir_mobile:plus Iranian mobile numbers with plus country code +989173456789
ir_mobile:code Iranian mobile numbers with country code 989173456789
ir_mobile:zero Iranian mobile numbers starts with zero 09173456789
ir_mobile:without_zero Iranian mobile numbers without first zero 9173456789
ir_phone Iranian phone numbers 37236445
ir_phone_code Iranian phone area code 077, 021, ...
ir_phone_with_code Iranian phone number with area code 07737236445
ir_postal_code Iranian postal code 1619735744, 16197-35744
ir_postal_code:seprate Iranian postal code sperated 16197-35744
ir_postal_code:without_seprate Iranian postal code without seprate 1619735744
ir_bank_card_number Iranian bank payment card numbers 6274129005473742
ir_bank_card_number:seprate Iranian bank payment card numbers seprate between digits with dash 6274-1290-0547-3742
ir_bank_card_number:space Iranian bank payment card numbers seprate between digits with space 6274 1290 0547 3742
ir_sheba Iranian Sheba numbers IR062960000000100324200001
ir_national_code Iran melli code 0013542419
a_url Check correct URL http://google.com, https://www.google.com
a_domain Check correct Domain www.google.com, google.com
ir_company_id Iranian National Legal Entity Identifier (Shenase Melli Ashkhas Hoghoghi) 14007650912

Persian Alpha

Accept Persian language alphabet according to standard Persian, this is the way you can use this validation rule:

Persian numbers

Validate Persian standard numbers (۰۱۲۳۴۵۶۷۸۹):

Persian Alpha Num

Validate Persian alpha num:

Persian Alpha Eng Num

Validate Persian alpha num with english num:

Shamsi Date

Validate shamsi (jalali) date:

Shamsi Date Between

Validate shamsi (jalali) date between years:

Iran mobile phone

Validate Iranian mobile numbers (Irancell, Rightel, Hamrah-e-aval, ...):

Sheba number

Validate Iranian bank sheba numbers:

Iran national code

Validate Iranian national code (Melli Code):

Payment card number

Validate Iranian bank payment card numbers:

Iran postal code

Validate Iranian postal code:

Iran company id

Validate Iranian National Legal Entity Identifier (Shenase Melli Ashkhas Hoghoghi)

More

Full list of Persian Validation rules usage:

License

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


All versions of laravel-persian-validation with dependencies

PHP Build Version
Package Version
Requires php Version ~7.4|^8.0|^8.1|^8.2
illuminate/support Version ^6|^7|^8|^9|^10|^11
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 sadegh19b/laravel-persian-validation contains the following files

Loading the files please wait ....