library numbers
PHP value-objects for various identification numbers used in Poland (PESEL, REGON, NIP, NRB, etc.)
kminek/numbers
PHP value-objects for various identification numbers used in Poland (PESEL, REGON, NIP, NRB, etc.)
- Wednesday, April 13, 2016
- by kminek
- Repository
- 1 Watchers
- 1 Stars
- 165 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 19 % Grown
Numbers
PHP value-objects for various identification numbers used in Poland:, (*1)
- 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
dev-master
9999999-dev
PHP value-objects for various identification numbers used in Poland (PESEL, REGON, NIP, NRB, etc.)
Sources
Download
The Development Requires
by
Grzegorz Wojcik