2017 © Pedro PelĂĄez
 

library polish-validator

Validators for Polish identification numbers: PESEL, NIP, REGON.

image

kiczort/polish-validator

Validators for Polish identification numbers: PESEL, NIP, REGON.

  • Thursday, August 10, 2017
  • by kiczort
  • Repository
  • 2 Watchers
  • 4 Stars
  • 3,539 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

PHP library with Polish validators

License Version Build status FOSSA Status, (*1)

This is PHP library with validators for Polish identification numbers like: PESEL, NIP, REGON., (*2)

Installation

The recommended way to install this library is Composer., (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version:, (*4)

php composer.phar require kiczort/polish-validator

Documentation

Example of use PeselValidator:

There are PESEL numbers with errors in real word, so in case of this validator checksum checking is only for strict mode. In case of none strict mode it checks length, used chars and correctness of date of birth., (*5)

...
use Kiczort\PolishValidator\PeselValidator;
...
$validator = new PeselValidator();
if ($validator->isValid('123456789')) { // none strict mode
...
}
...
if ($validator->isValid('123456789', array('strict' => true))) { // with strict mode
...
}
...

Example of use NipValidator:

...
use Kiczort\PolishValidator\NipValidator;
...
$validator = new NipValidator();
if ($validator->isValid('123456789')) {
...
}
...

Example of use RegonValidator:

...
use Kiczort\PolishValidator\RegonValidator;
...
$validator = new RegonValidator();
if ($validator->isValid('123456789')) {
...
}
...

Example of use PwzValidator:

...
use Kiczort\PolishValidator\PwzValidator;
...
$validator = new PwzValidator();
if ($validator->isValid('1234567')) {
...
}
...

Bug tracking

GitHub issues. If you have found bug, please create an issue., (*6)

MIT License

License can be found here., (*7)

FOSSA Status, (*8)

The Versions

10/08 2017

dev-master

9999999-dev

Validators for Polish identification numbers: PESEL, NIP, REGON.

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Grzegorz KoziƄski
by MichaƂ Mleczko

validator pesel regon nip polish validator pl validator

10/08 2017

v1.1.1

1.1.1.0

Validators for Polish identification numbers: PESEL, NIP, REGON.

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Grzegorz KoziƄski
by MichaƂ Mleczko

validator pesel regon nip polish validator pl validator

27/02 2017

v1.1.0

1.1.0.0

Validators for Polish identification numbers: PESEL, NIP, REGON.

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Grzegorz KoziƄski
by MichaƂ Mleczko

validator pesel regon nip polish validator pl validator

19/07 2016

v1.0.0

1.0.0.0

Validators for Polish identification numbers: PESEL, NIP, REGON.

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Grzegorz KoziƄski

validator pesel regon nip polish validator pl validator