Download the PHP package kduma/polish-validator without Composer
On this page you can find all versions of the php package kduma/polish-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kduma/polish-validator
More information about kduma/polish-validator
Files in kduma/polish-validator
Package polish-validator
Short Description polish Validation rules for Laravel 5 Validator
License MIT
Informations about the package polish-validator
Package EOL
This package is deprecated and no longer maintained.
The package was built for Laravel 5.x and uses the legacy
Validator::extend()API which has been superseded by the modernValidationRuleinterface. It has not been updated to support Laravel 11+ and is incompatible with Laravel 13 (which requires PHP 8.3+).If you need PESEL or Polish identity card validation, consider implementing custom rules using Laravel's
ValidationRuleinterface — the validation logic from this package can be easily extracted into standalone rule classes.
L5-polish-validator-rules
polish Validation rules for Laravel 5.X Validator
Check full documentation here: opensource.duma.sh/libraries/deprecated/laravel-polish-validator
Setup
You can install the package via composer:
composer require kduma/polish-validator
If you are using Laravel 5.5, the service provider will automatically be discovered.
On earlier versions, you need to do that manually. You must add the Service Provider to the providers array in config/app.php:
KDuma\Validator\PolishValidatorRulesServiceProvider::class,
Usage
You have 2 new Validator rules:
peselor\KDuma\Validator\PeselNumberRule()- Checks if number is valid PESEL numberidentity_cardor\KDuma\Validator\PolishIdentityCardNumberRule()- Checks if number is polish identity document number
Code Authors
A special thanks to authors of phpedia.pl, an original pesel validator creators that this package is based on and Mariusz Tomaszewski (on algorytm.org) who wrote original identity card checker.
Packagist
View this package on Packagist.org: kduma/polish-validator
