Download the PHP package iamfarhad/validation without Composer

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

Latest Stable Version License Total Downloads

Laravel Persian Validation

The Laravel Persian Validation package offers comprehensive validation for the Persian language, including validation for Persian alphabets, numbers, and other Persian-specific elements. This package allows developers to ensure that their Persian language input data meets the necessary validation criteria, enhancing the reliability and accuracy of their applications. With Laravel Persian Validation, developers can easily incorporate Persian language validation into their Laravel projects, providing a more inclusive and user-friendly experience for Persian-speaking users.

Requirement

Install

Via Composer

This package is designed to automatically register itself without requiring any additional configuration.

Translations

If you would like to customize the translations for the Laravel Persian Validation package, you can use the following command to publish them into your project's resources/lang directory:

If you are using Laravel 9.x or later, the translations will be published to the /lang directory instead. Once the translations are published, you can modify them as needed to suit your project's requirements.

Testing

You can run the tests with:

Usage

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

Rules Descriptions
new PersianAlpha() Persian alphabet
new PersianNumber() Persian numbers
new Mobile() Iran mobile numbers
new Sheba() Iran Sheba numbers
new NationalCode() Iran melli code
new IsNotPersian() Doesn't accept Persian alphabet and numbers
new Mobile() Iran mobile numbers
new Phone() Iran phone numbers
new PhoneArea() Iran phone numbers with area code
new CardNumber() Payment card numbers
new Address() Accept Persian, English and ... alphabet, Persian and English numbers and some special characters
new PostalCode() Iran postal code
new Username() Username format
new Base64() Base64 format

Persian Alphabet

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

Persian numbers

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

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:

Team

This component is developed by the following person(s)

Farhad Zand
Farhad Zand

Support This Project

Great! It's always helpful to have more contributors to a package. Here are a few ways you can contribute to the package completion:

Remember that contributing to open-source projects like this package is a collaborative effort, and every little bit helps. Thank you for considering contributing!

License

The Laravel persian validation Module is open-sourced software licensed under the MIT license


All versions of validation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.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 iamfarhad/validation contains the following files

Loading the files please wait ....