Download the PHP package mota9100/validation without Composer
On this page you can find all versions of the php package mota9100/validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package validation
Lumen Persian Validation
Lumen Persian Validation provides validation for Persian alphabet, number and etc. Forked From Laravel Persian Validation Anetwork/validation
Requirement
- Lumen ^6.0
- PHP >= 7.2
License
Lumen Persian Validation is open-sourced software licensed under the MIT license
Install
Via Composer
Config
Add the following provider to providers part of config/app.php
vendor:publish
You can run vendor:publish command to have custom lang file of package on this path ( resources/lang/validation )
Usage
You can access to validation rules by passing the rules key according blew following table:
Rules | Descriptions |
---|---|
persian_alpha | Persian alphabet |
persian_num | Persian numbers |
persian_alpha_num | Persian alphabet and numbers |
iran_mobile | Iran mobile numbers |
sheba | Iran Sheba numbers |
melli_code | Iran melli code |
is_not_persian | Doesn't accept Persian alphabet and numbers |
limited_array | Check variable is array and array must be lesser and equal than parameter |
unsigned_num | Check variable is unsigned numbers |
alpha_space | Accept Persian, English and ... alphabet, space character |
a_url | Check correct URL |
a_domain | Check correct Domain |
more | Check value be max and not equal too |
less | Check value be min and not equal too |
iran_phone | Iran phone numbers |
card_number | Payment card numbers |
address | Accept Persian, English and ... alphabet, Persian and English numbers and some special characters |
iran_postal_code | Iran postal code |
package_name | Check APK package name |
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:
Iran mobile phone
Validate Iran mobile phones (irancel, rightel, hamrah-e-aval, ...):
Sheba number
Validate Iran bank sheba numbers:
Iran national code
Validate Iran national code (melli-code):
Payment card number
Validate Iran payment card numbers:
Iran postal code
Validate Iran postal code:
More
Here is full list of Anetwork validation rules usage: