Download the PHP package vahidalvandi/validation without Composer

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

Build Status Latest Stable Version Total Downloads License

Laravel Persian Validation

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

Requirement

License

Laravel 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:


All versions of validation with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.2|^6.0|^7.0|^8.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 vahidalvandi/validation contains the following files

Loading the files please wait ....