kminek/numbers

There is no license information available for the latest version (dev-master) of this package.

PHP value-objects for various identification numbers used in Poland (PESEL, REGON, NIP, NRB, etc.)

Installs: 1 915

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/kminek/numbers

dev-master 2016-04-13 18:29 UTC

This package is auto-updated.

Last update: 2025-09-17 11:03:40 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