Package Data | |
---|---|
Maintainer Username: | kduma |
Maintainer Contact: | git@kduma.tk (Krystian Duma) |
Package Create Date: | 2015-01-31 |
Package Last Update: | 2019-11-26 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:24:09 |
Package Statistics | |
---|---|
Total Downloads: | 1,156 |
Monthly Downloads: | 3 |
Daily Downloads: | 1 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 0 |
polish Validation rules for Laravel 5.X Validator
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,
You have 2 new Validator rules:
pesel
or \KDuma\Validator\PeselNumberRule()
- Checks if number is valid PESEL numberidentity_card
or \KDuma\Validator\PolishIdentityCardNumberRule()
- Checks if number is polish identity document numberA 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.
View this package on Packagist.org: kduma/polish-validator