kduma / polish-validator
polish Validation rules for Laravel 5 Validator
Installs: 1 165
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
- illuminate/console: 5.*|^6.0
This package is auto-updated.
Last update: 2024-11-29 18:57:10 UTC
README
polish Validation rules for Laravel 5.X 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:
pesel
or\KDuma\Validator\PeselNumberRule()
- Checks if number is valid PESEL numberidentity_card
or\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