Download the PHP package czachor/polish-id-validators without Composer
On this page you can find all versions of the php package czachor/polish-id-validators. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package polish-id-validators
[DEPRECATED] Polish ID Validators
Version: 1.3
Pcackage is currently marked as deprecated. A new version is coming soon.
PHP library based on Symfony Validator Component to validate various medical identification numbers used in Poland.
Only algorithmical validation mostly based on a check digit. It does not query official medical registries to fetch any data or if a record (ID) exists at all.
Available validators
-
Numer Prawa Wykonywania Zawodu Lekarza (PWZ) (Polish medical licence ID for physicians)
Example:
5425740
, total 7 digits:- check digit
- 6 digits
Source:
-
Numer Prawa Wykonywania Zawodu Farmaceuty (PWZF) (pharmacists ID)
EAN-8 code, example:
09014954
, total 8 digits:- 2-digits local district chamber (
01
to22
) - 5-digits sequential number
- check digit
Source:
- 2-digits local district chamber (
-
Numer Prawa Wykonywania Zawodu Pielęgniarki/Położnej (PWZP) (nurses and midwives ID)
Example:
0201234P
, total 8 chars: 7 digits and letter:- 2-digits ID of local District Chamber of Nurses and Midwives (
01
to45
) - 5-digits sequential number
- letter
P
orA
Source:
- 2-digits ID of local District Chamber of Nurses and Midwives (
-
Numer Prawa Wykonywania Zawodu Diagnosty Laboratoryjnego (PWZDL) (laboratory diagnostician ID)
Example:
3143
, PWZDL ID are simple sequential numbers, so there is very simple "is numeric" validation.
Requirements
PHP 7.2+.
Install
Via Composer
Usage
All ID must be passed as strings.
Direct method
With Symfony Component:
Translation
Translation uses Symfony Translation Component.
Available languages:
- English (default) -
en_US
- Polish -
pl_PL
How to use:
If your language is unsupported, you can add it manually:
Or if you want to use a different loader:
Todo
- More validators
- Annotations
- More translations
License
The MIT License (MIT).
All versions of polish-id-validators with dependencies
ronanguilloux/isocodes Version ^2.3
symfony/translation Version ^5.0|^6.0
symfony/validator Version ^5.0|^6.0