Download the PHP package slashlab/numerik without Composer
On this page you can find all versions of the php package slashlab/numerik. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slashlab/numerik
More information about slashlab/numerik
Files in slashlab/numerik
Package numerik
Short Description Modern PHP 8.3+ library for validating and parsing Polish identification numbers (PESEL, NIP, REGON, KRS, NRB, VAT-EU, IBAN, ID Card, Passport).
License MIT
Homepage https://numerik.slashlab.pl
Informations about the package numerik
Numerik
Modern PHP 8.3+ library for validating and parsing Polish identification numbers — PESEL, NIP, REGON, KRS, NRB, VAT-EU, IBAN, ID Card, and Passport. Rich value objects, detailed error reasons, zero production dependencies.
Installation
Quick Start
Strict Mode
All identifiers accept an optional strict parameter (default true), and it never affects how input is normalized — normalization (stripping spaces, and dashes where the format allows them) is the same in both modes. What strict gates is extra semantic plausibility checks: rejecting all-same-digit numbers (PESEL, NIP, KRS, VAT-EU) and future birth dates (PESEL). ID Card, Passport, REGON, NRB, and IBAN have no additional strict-mode checks.
Documentation
Full documentation at numerik.slashlab.pl
JavaScript / TypeScript Port
A TypeScript port is available at @slashlab/numerik-js. It mirrors this library's API — same identifiers, same value objects, same strict mode — with Zod integration included.
Laravel Integration
A dedicated Laravel package is available at slashlab/numerik-laravel (PHP 8.3+, Laravel 12/13). It provides class-based and string-based validation rules with per-failure-reason error messages, English and Polish translations, and extended PeselRule constraints (gender, bornBefore, bornAfter).
See the numerik-laravel README for full usage.
Changelog
See CHANGELOG.md.
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md.
License
MIT — see LICENSE.
If this saved you time → ☕ Buy me a coffee