Download the PHP package arifszn/laravel-advanced-validation without Composer

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

Laravel Advanced Validation

Laravel advanced validation rules for real-life scenarios.

Installation

Install via composer

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Translations

If you wish to edit the package translations, you can run the following command to publish them into your resources/lang folder

Custom Error Message

You can specify the error message on the fly when declaring the rules. Simple pass the error message parameter.

Available Validation Rules

Ascii

The field under validation must contain ASCII chars only.

Base64Image

The field under validation must be a Base64 encoded image.

Base64String

The field under validation must be a Base64 encoded string.

BIC

The field under validation must be a BIC(Business Identifier Code) or SWIFT code.

BtcAddress

The field under validation must be a valid BTC address.

CreditCard

The field under validation must be a valid credit card number.

DataURI

The field under validation must have data uri format.

DivisibleBy

The field under validation must be divisible by the given number.

EthereumAddress

The field under validation must be an Ethereum address. Does not validate address checksums.

FloatNumber

The field under validation must be a float number.

Hash

The field under validation must be a hash of type algorithm.

Algorithm is one of 'md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b'.

ImageURL

The field under validation must be a valid image URL.

https://www.php.net/images/logos/php-logo.png \ ✕ https://imaginarysite123.com/invalid.png

JWT

The field under validation must have a valid format of JWT (JSON Web Token).

Name

The field under validation must be a valid name.

Phone

The field under validation must be a valid phone number.

✓ +x-xxx-xxx-xxxx \ ✓ +xxxxxxxxxxx \ ✓ (xxx) xxx-xxxx \ ✓ xxxxxxxxxx

Username

The field under validation must be a valid username.

WithoutSpaces

The field under validation must not contain spaces.

Tips

If you want to use the rules as strings and use them globally e.g. 'foo' => ['phone'], you can do so by adding them to the boot method of your project's AppServiceProvider.

Testing

Contributing

Any contributors who want to make this project better can make contributions, which will be greatly appreciated. To contribute, clone this repo locally and commit your code to a new branch. Feel free to create an issue or make a pull request.

Credits

Support

Buy Me A Coffee

License

This package is licensed under the MIT License.


All versions of laravel-advanced-validation with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
illuminate/support Version ^6.0|^7.0|^8.0|^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 arifszn/laravel-advanced-validation contains the following files

Loading the files please wait ....