Simple Polish Validation rules for Laravel and Lumen framework
You can install this package by composer:
composer require pacerit/laravel-polish-validation-rules
For customize validaiton messages run:
php artisan vendor:publish --provider "PacerIT\LaravelPolishValidationRules\Providers\LaravelPolishValidationRulesServiceProvider"
Framework | Package | Note |
---|---|---|
5.8.x | ^1.x.x | No longer maintained. |
6.0.x | ^2.x.x | |
7.x.x | ^3.x.x | |
8.x.x | ^4.x.x |
Framework | Package | Note |
---|---|---|
5.8.x | ^1.x.x | No longer maintained. |
6.0.x | ^2.x.x | |
7.x.x | ^3.x.x | |
8.x.x | ^4.x.x |
- 'PESEL' - validate PESEL number
- 'REGON' - validate REGON number
- 'NIP' - validate NIP number
- 'id_card_number' - validate Polish ID Card number
- 'post_code' - validate Polish post codes (accept codes in format 00-000 and 00000),
- 'PWZ' - validate PWZ (Prawo wykonywania zawodu lekarza/farmaceuty) numer (more information HERE)
The algorithms used in the functions are based on existing solutions. Below are links to the sources:
- PESEL - http://phpedia.pl/wiki/PESEL
- REGON - http://phpedia.pl/wiki/REGON
- NIP - http://phpedia.pl/wiki/NIP
- id_card_number - http://www.algorytm.org
Go to the Changelog for a full change history of the package.
composer test
If you discover a security vulnerability within package, please send an e-mail to Wiktor Pacer via kontakt@pacerit.pl. All security vulnerabilities will be promptly addressed.
This package is open-source software licensed under the MIT license.