Skip to content

arekpietrzyk/L5-polish-validator-rules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L5-polish-validator-rules

Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight StyleCI

polish Validation rules for Laravel 5.X Validator

Setup

Add the package to the require section of your composer.json and run composer update

"kduma/polish-validator": "^1.1"

Then add the Service Provider to the providers array in config/app.php:

KDuma\Validator\PolishValidatorRulesServiceProvider::class,

Usage

You have 2 new Validator rules:

  • pesel - Checks if number is valid PESEL number
  • identity_card - Checks if number is polish identity document number

Translations

Use ready polish translations to paste in resources/lang/pl/validation.php file:

"pesel" => 'Podany numer PESEL jest nieprawidłowy',
"identity_card" => 'Podany numer dowodu osobistego jest nieprawidłowy',

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

About

polish Validation rules for Laravel 5 Validator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%