Download the PHP package codeplace-io/polish-validator-bundle without Composer
On this page you can find all versions of the php package codeplace-io/polish-validator-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codeplace-io/polish-validator-bundle
More information about codeplace-io/polish-validator-bundle
Files in codeplace-io/polish-validator-bundle
Package polish-validator-bundle
Short Description Symfony bundle with validators for Polish identification numbers: PESEL, NIP, REGON, PWZ.
License MIT
Informations about the package polish-validator-bundle
Symfony bundle with Polish validators
This is Symfony bundle with validators for Polish identification numbers like: PESEL, NIP, REGON and PWZ.
Installation
The recommended way to install this library is Composer.
Next, run the Composer command to install the latest stable version:
Add bundle to AppKernel.php
Documentation
Example of use PeselValidator:
There are PESEL numbers with errors in real word, so in case of this validator checksum checking is only for strict mode. In case of none strict mode it checks length, used chars and correctness of date of birth.
Example of use NipValidator:
Example of use RegonValidator:
Example of use PwzValidator:
PWZ means "licence to practise a profession" (pl. "prawo wykonywania zawodu"), number given to doctors from NIL (polish Chamber of Physicians and Dentists). Validator accepts also empty strings and nulls so you have to add "Assert/NotBlank" myself.
Bug tracking
GitHub issues. If you have found bug, please create an issue.
MIT License
License can be found here.
All versions of polish-validator-bundle with dependencies
kiczort/polish-validator Version ^1.1
symfony/config Version ~3.2 || ~4.0 || ~5.0 || ~6.0
symfony/http-kernel Version ~3.2 || ~4.0 || ~5.0 || ~6.0
symfony/dependency-injection Version ~3.2 || ~4.0 || ~5.0 || ~6.0
symfony/validator Version ~3.2 || ~4.0 || ~5.0 || ~6.0