extended-laravel-validator maintained by avto-dev
Description
Extended validation rules for Laravel applications
Author
Last update
2026/02/18 06:52
(dev-master)
License
Downloads
45 912
Last update
2026/02/18 06:52
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0 || ~12.0
- illuminate/container ~10.0 || ~11.0 || ~12.0
- illuminate/support ~10.0 || ~11.0 || ~12.0
- illuminate/validation ~10.0 || ~11.0 || ~12.0
- illuminate/config ~10.0 || ~11.0 || ~12.0
Last update
2026/02/18 06:52
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0 || ~12.0
- illuminate/container ~10.0 || ~11.0 || ~12.0
- illuminate/support ~10.0 || ~11.0 || ~12.0
- illuminate/validation ~10.0 || ~11.0 || ~12.0
- illuminate/config ~10.0 || ~11.0 || ~12.0
Last update
2025/06/30 13:11
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0 || ~12.0
- illuminate/container ~10.0 || ~11.0 || ~12.0
- illuminate/support ~10.0 || ~11.0 || ~12.0
- illuminate/validation ~10.0 || ~11.0 || ~12.0
- illuminate/config ~10.0 || ~11.0 || ~12.0
Last update
2024/08/22 09:07
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0
- illuminate/container ~10.0 || ~11.0
- illuminate/support ~10.0 || ~11.0
- illuminate/validation ~10.0 || ~11.0
- illuminate/config ~10.0 || ~11.0
Last update
2024/08/22 09:05
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0
- illuminate/container ~10.0 || ~11.0
- illuminate/support ~10.0 || ~11.0
- illuminate/validation ~10.0 || ~11.0
- illuminate/config ~10.0 || ~11.0
Last update
2024/05/31 13:22
License
Require
- php ^8.1
- illuminate/contracts ~10.0 || ~11.0
- illuminate/container ~10.0 || ~11.0
- illuminate/support ~10.0 || ~11.0
- illuminate/validation ~10.0 || ~11.0
- illuminate/config ~10.0 || ~11.0
Last update
2023/05/11 06:21
License
Require
- php ^8.0
- illuminate/contracts ~9.0 || ~10.0
- illuminate/container ~9.0 || ~10.0
- illuminate/support ~9.0 || ~10.0
- illuminate/validation ~9.0 || ~10.0
- illuminate/config ~9.0 || ~10.0
Last update
2022/07/12 08:54
License
Require
- php ^7.3 || ^8.0
- illuminate/contracts ~6.0 || ~7.0 || ~8.0 || ~9.0
- illuminate/container ~6.0 || ~7.0 || ~8.0 || ~9.0
- illuminate/support ~6.0 || ~7.0 || ~8.0 || ~9.0
- illuminate/validation ~6.0 || ~7.0 || ~8.0 || ~9.0
- illuminate/config ~6.0 || ~7.0 || ~8.0 || ~9.0
Last update
2020/12/04 07:38
License
Require
- php ^7.2 || ^8.0
- illuminate/contracts ~6.0 || ~7.0 || ~8.0
- illuminate/container ~6.0 || ~7.0 || ~8.0
- illuminate/support ~6.0 || ~7.0 || ~8.0
- illuminate/validation ~6.0 || ~7.0 || ~8.0
- illuminate/config ~6.0 || ~7.0 || ~8.0
Last update
2020/09/10 09:02
License
Require
- php ^7.2
- illuminate/contracts ~6.0 || ~7.0 || ~8.0
- illuminate/container ~6.0 || ~7.0 || ~8.0
- illuminate/support ~6.0 || ~7.0 || ~8.0
- illuminate/validation ~6.0 || ~7.0 || ~8.0
- illuminate/config ~6.0 || ~7.0 || ~8.0
Last update
2020/05/19 17:32
License
Require
- php ^7.1.3
- illuminate/contracts ^5.5 || ~6.0 || ~7.0
- illuminate/container ^5.5 || ~6.0 || ~7.0
- illuminate/support ^5.5 || ~6.0 || ~7.0
- illuminate/validation ^5.5 || ~6.0 || ~7.0
- illuminate/config ^5.5 || ~6.0 || ~7.0
Last update
2020/01/27 14:19
License
Require
- php ^7.1.3
- illuminate/contracts ^5.5 || ~6.0
- illuminate/container ^5.5 || ~6.0
- illuminate/support ^5.5 || ~6.0
- illuminate/validation ^5.5 || ~6.0
- illuminate/config ^5.5 || ~6.0
Last update
2019/10/22 12:34
License
Require
- php ^7.1.3
- illuminate/contracts >=5.5.0 <5.9.0 || ~6.0
- illuminate/container >=5.5.0 <5.9.0 || ~6.0
- illuminate/support >=5.5.0 <5.9.0 || ~6.0
- illuminate/validation >=5.5.0 <5.9.0 || ~6.0
- illuminate/config >=5.5.0 <5.9.0 || ~6.0
Last update
2019/07/16 10:52
License
Require
- php ^7.1.3
- illuminate/contracts >=5.5.0 <5.9.0
- illuminate/container >=5.5.0 <5.9.0
- illuminate/support >=5.5.0 <5.9.0
- illuminate/validation >=5.5.0 <5.9.0
- illuminate/config >=5.5.0 <5.9.0
Last update
2018/07/06 22:30
License
Require
- php ^5.6 || >=7.0 <=7.3
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/07/06 20:07
License
Require
- php ^5.6 || >=7.0 <=7.3
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/06/10 17:09
License
Require
- php ^5.6 || >=7.0 <=7.3
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/04/22 08:58
License
Require
- php ^5.6 || >=7.0 <=7.3
- ext-mbstring *
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/04/20 15:02
License
Require
- php ^5.6 || >=7.0 <=7.3
- ext-mbstring *
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/04/16 16:28
License
Require
- php ^5.6 || >=7.0 <=7.3
- ext-mbstring *
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/02/18 19:20
License
Require
- php ^5.6 || >=7.0 <=7.3
- ext-mbstring *
- laravel/framework >=5.4.0 <5.7.0
Last update
2018/02/15 21:01
License
Require
- php ^5.6 || ^7.0
- ext-mbstring *
- laravel/framework 5.4.* || 5.5.* || 5.6.*
Last update
2018/02/08 15:14
License
Require
- php ^5.6 || ^7.0
- ext-mbstring *
- laravel/framework 5.4.* || 5.5.* || 5.6.*
Last update
2018/02/05 11:24
License
Require
- php ^5.6 || ^7.0
- ext-mbstring *
- laravel/framework ~5.4
Last update
2017/12/07 13:43
License
Require
- php ^5.6 || ^7.0
- ext-mbstring *
- laravel/framework ~5.4
Last update
2017/10/28 00:02
License
Require
- php ^5.6 || ^7.0
- ext-mbstring *
- laravel/framework ~5.4
Extensions for Laravel Validator
This package provides extended validation rules for Laravel validator.
Install
Require this package with composer using the following command:
$ composer require avto-dev/extended-laravel-validator "^6.0"
Installed
composeris required (how to install composer).
You need to fix the major version of package.
After that you can "publish" configuration file (./config/extended-laravel-validator.php) using next command:
$ ./artisan vendor:publish --provider="AvtoDev\\ExtendedLaravelValidator\\ServiceProvider"
Usage
This package provides next validation rules:
| Rule | Description |
|---|---|
vin_code |
Vehicle VIN-code |
grz_code |
Vehicle GRZ-code |
sts_code |
Vehicle Registration Certificate Number (STS) |
pts_code |
Vehicle Passport Number (PTS) |
body_code |
Vehicle body number |
chassis_code |
Vehicle chassis number |
driver_license_number |
Driving license number |
cadastral_number |
Cadastral number (unique property number) |
epts_code |
Vehicle Electronic Passport Number (EPTS) |
Usage example:
<?php
/** @var \Illuminate\Contracts\Validation\Factory $validator */
$validator = resolve('validator');
$result = $validator->make([
'value' => 'XWB3L32EDCA218918',
], [
'value' => 'required|vin_code',
]);
$is_valid = $result->fails() === false;
Testing
For package testing we use phpunit framework and docker with compose plugin as develop environment. So, just write into your terminal after repository cloning:
$ make build
$ make latest # or 'make lowest'
$ make test
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
License
This is open-sourced software licensed under the MIT License.