Download the PHP package vdhicts/laravel-validation-rules without Composer

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

Laravel Validation Rules

This package offers extra validation rules for Laravel.

Requirements

This package requires Laravel 11+ and PHP 8.2+. If you need to support older version, see the table below:

Version Compatible with
6.0.0 11+
4.0.0+ 10+
3.0.0 9+
1.4.0+ 8+
1.2.0+ 7+
1.1.0 6+
1.0.1 5.7+

Installation

You can install the package via composer:

composer require vdhicts/laravel-validation-rules

The package will automatically register itself in Laravel.

Translation

The package includes both English and Dutch translations. The translations can be published by running:

php artisan vendor:publish

Available Rules

BicNumber

Validates the provided BIC number.

Contains

Validates if the value contains a certain phrase.

ContainsAny

Validates if the value contains any of the provided phrases.

DateAfterOrEqual

Validates if the value is a date after or equals the provided date (Carbon).

DateBeforeOrEqual

Validates if the value is a date before or equals the provided date (Carbon).

DateHasSpecificMinutes

Validates if the selected minutes for the provided date are according to the available minutes.

When the date is not according to the 'Y-m-d H:i' format then you are able to specify the format as second parameter:

DutchPhone

Validates if the value is a valid dutch phone number. Both mobile or landlines are supported. See the Phone validation rule to validate a phone number which isn't limited to the Netherlands.

DutchPostalCode

Validates if the value is a valid dutch zip code, like 1234AB.

HostName

Validates if the value contains a valid hostname, like example.com.

InternationalBankAccountNumber

Validates if the value contains a valid IBAN.

Interval

Validates if the value is an interval, i.e. PT30S.

MaximumHourDifference

Validates if the value is differing less then the provided amount of hours.

Mime Type

Validates if the value is a structural valid MIME.

NotContains

Validates if the value NOT contains a certain phrase.

Phone

Validates if the value is a valid phone number.

Positive interval

Validates if the value is an interval and the interval is positive.

Price

Validates if the value is a valid price. The rule optionally accepts a specific decimal sign. When the decimal isn't provided it accepts both , or . signs.

Secure url

Validates if the value is a valid secure url, i.e. is a HTTPS url.

Semver

Validates if the value is a valid version according to the Semver standard.

VatNumber

Validates if the value is a valid formatted VAT number.

Be aware: It doesn't check if the number is known in the VAT database. If you need to know the VAT number is truly legit, check with VIES.

Contribution

Any contribution is welcome, but it should be (unit) tested and meet the PSR-12 standard and please create one pull request per feature. In exchange, you will be credited as contributor on this page.

Security

If you discover any security related issues in this or other packages of Vdhicts, please email [email protected] instead of using the issue tracker.

License

This package is open-sourced software licensed under the MIT license.

About vdhicts

Vdhicts is the name of my personal company. Vdhicts develops and implements IT solutions for businesses and educational institutions.


All versions of laravel-validation-rules with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^10.0|^11.0
laravel/pint Version ^1.7
spatie/regex Version ^3.1
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 vdhicts/laravel-validation-rules contains the following files

Loading the files please wait ....