kminek / numbers
PHP value-objects for various identification numbers used in Poland (PESEL, REGON, NIP, NRB, etc.)
Installs: 1 759
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-11-17 08:55:46 UTC
README
PHP value-objects for various identification numbers used in Poland:
- PESEL (national identification number)
- REGON (taxpayer identification number)
- NIP (VAT identification number)
- NRB (national bank account number)
Usage
use Kminek\Numbers\PESEL; $pesel = PESEL::create('00261503191'); // will throw exception for incorrect PESEL $pesel->getGender(); // 'male' $pesel->getSerialNumber(); // '0319' $pesel->getDate(); // DateTime object $pesel->getChecksum(); // 1