marcin-orlowski / polish-ids
Validators for various IDs used in Poland.
1.0.0
2026-07-06 09:02 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^13.2
This package is auto-updated.
Last update: 2026-07-06 09:08:57 UTC
README
█▀▀▄ ▀█ ▀ █ ▀█▀ █▀▀▄
█ █ ▄▀▀▄ █ ▀█ ▄▀▀▄ █▀▀▄ █ █ █ ▄▀▀▄
█▀▀ █ █ █ █ ▀▄ █ █ █ █ █ ▀▄
█ ▀▄▄▀ ▄█▄ ▄█▄ ▀▄▄▀ █ █ ▄█▄ █▄▄▀ ▀▄▄▀
Polish IDs validators
Validators for various IDs used in Poland as NIP, PESEL, REGON, and others so you can validate
your users inputs easier. For FakerPHP's generators, see marcin-orlowski/polish-ids-faker package.
Installation
composer require --dev marcin-orlowski/polish-ids-faker
| Desc | Static methods |
|---|---|
| Checks if given NIP number is valid | assertNipIsValid(), isNipIsValid() |
| Checls NIP formatting | assertNipIsFormatted(), isNipIsFormatted() |
| Validates NIP checksum | assertNipChecksumIsValid(), isNipChecksumIsValid() |
License
- Written and copyright ©2026 Marcin Orlowski
- Licensed under the MIT License.