2017 © Pedro Peláez
 

library pesel

Obiekt PESEL, możliwość: walidacji, ustawienie zakresu roku poprawnych peseli, wyciągnięcia danych jakie znajdują się m.in data urodzenia, płeć

image

tomasz-kr/pesel

Obiekt PESEL, możliwość: walidacji, ustawienie zakresu roku poprawnych peseli, wyciągnięcia danych jakie znajdują się m.in data urodzenia, płeć

  • Sunday, November 12, 2017
  • by TomaszKr
  • Repository
  • 2 Watchers
  • 2 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 92 % Grown

The README.md

Pesel

Object Pesel PESEL mean Personal Identificator for Poland, (*1)

Build Status, (*2)

Getting Started

Used this object for every time when your project has number PESEL and you must validation it., (*3)

Required

PHP >= 7.1

Installing

Go to your project directory where the composer.json file is located and type:, (*4)

composer install tomasz-kr/pesel

Running the tests

phpunit --configuration phpunit.xml 

Overview

Firstly, create object Pesel and add in constructor number Pesel:, (*5)

$pesel = new PESEL("NUMBER");

Now, you can take information about:, (*6)

  • Correct format
$pesel->isCorrectLenght(); //boolean
  • Correct only number
$pesel->isCorrectNumber(); //boolean
  • Correct for number controls
$pesel->valid(); //boolean
  • Correct for exist in this day
$pesel->isCorrectDateNow();
  • Correct for all condition
$pesel->isCorrect(); //boolean
  • Birthday
$pesel->getBirthday()->format("Y-m-d");
  • Gender
$pesel->setTextForMan("Man");
$pesel->setTextForWoman("Woman");
$pesel->whatGender(); //return man or woman
  • Correct year between 2 years (min and max)
$pesel->isCorrectYear(); //boolean

Default:, (*7)

Min has 1st January 1800, (*8)

Max has this days, (*9)

  • Set max year
$pesel->setMaxYear(\DateTime $dateTime);
  • Set min year
$pesel->setMinYear(\DateTime $dateTime);

Author

Tomasz Król, (*10)

License

This project is licensed under the MIT Licence - see the LICENSE file for details, (*11)

The Versions

12/11 2017

dev-master

9999999-dev

Obiekt PESEL, możliwość: walidacji, ustawienie zakresu roku poprawnych peseli, wyciągnięcia danych jakie znajdują się m.in data urodzenia, płeć

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Tomasz Krol

php validation pesel

30/10 2017

1.0.0

1.0.0.0

Obiekt PESEL, możliwość: walidacji, ustawienie zakresu roku poprawnych peseli, wyciągnięcia danych jakie znajdują się m.in data urodzenia, płeć

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Tomasz Krol

php validation pesel